Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/bfd Copy the change made by chri...
details: https://anonhg.NetBSD.org/src/rev/4682f156bcb1
branches: trunk
changeset: 748817:4682f156bcb1
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Nov 06 10:59:17 2009 +0000
description:
Copy the change made by christos to elf32-i386.c to other targets where
it's easy:
Add a warning that prints the symbol that has the text reloc.
diffstat:
external/gpl3/binutils/dist/bfd/elf32-arm.c | 4 ++++
external/gpl3/binutils/dist/bfd/elf32-hppa.c | 4 ++++
external/gpl3/binutils/dist/bfd/elf32-sh.c | 4 ++++
external/gpl3/binutils/dist/bfd/elf64-x86-64.c | 4 ++++
external/gpl3/binutils/dist/bfd/elfxx-sparc.c | 4 ++++
5 files changed, 20 insertions(+), 0 deletions(-)
diffs (70 lines):
diff -r e56481826ab8 -r 4682f156bcb1 external/gpl3/binutils/dist/bfd/elf32-arm.c
--- a/external/gpl3/binutils/dist/bfd/elf32-arm.c Fri Nov 06 04:42:27 2009 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-arm.c Fri Nov 06 10:59:17 2009 +0000
@@ -9969,6 +9969,10 @@
{
struct bfd_link_info *info = (struct bfd_link_info *) inf;
+ if (info->warn_shared_textrel)
+ (*_bfd_error_handler)
+ (_("warning: dynamic relocation in readonly section `%s'"),
+ h->root.root.string);
info->flags |= DF_TEXTREL;
/* Not an error, just cut short the traversal. */
diff -r e56481826ab8 -r 4682f156bcb1 external/gpl3/binutils/dist/bfd/elf32-hppa.c
--- a/external/gpl3/binutils/dist/bfd/elf32-hppa.c Fri Nov 06 04:42:27 2009 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-hppa.c Fri Nov 06 10:59:17 2009 +0000
@@ -2220,6 +2220,10 @@
{
struct bfd_link_info *info = inf;
+ if (info->warn_shared_textrel)
+ (*_bfd_error_handler)
+ (_("warning: dynamic relocation in readonly section `%s'"),
+ eh->root.root.string);
info->flags |= DF_TEXTREL;
/* Not an error, just cut short the traversal. */
diff -r e56481826ab8 -r 4682f156bcb1 external/gpl3/binutils/dist/bfd/elf32-sh.c
--- a/external/gpl3/binutils/dist/bfd/elf32-sh.c Fri Nov 06 04:42:27 2009 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-sh.c Fri Nov 06 10:59:17 2009 +0000
@@ -2911,6 +2911,10 @@
{
struct bfd_link_info *info = (struct bfd_link_info *) inf;
+ if (info->warn_shared_textrel)
+ (*_bfd_error_handler)
+ (_("warning: dynamic relocation in readonly section `%s'"),
+ h->root.root.string);
info->flags |= DF_TEXTREL;
/* Not an error, just cut short the traversal. */
diff -r e56481826ab8 -r 4682f156bcb1 external/gpl3/binutils/dist/bfd/elf64-x86-64.c
--- a/external/gpl3/binutils/dist/bfd/elf64-x86-64.c Fri Nov 06 04:42:27 2009 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf64-x86-64.c Fri Nov 06 10:59:17 2009 +0000
@@ -1926,6 +1926,10 @@
{
struct bfd_link_info *info = (struct bfd_link_info *) inf;
+ if (info->warn_shared_textrel)
+ (*_bfd_error_handler)
+ (_("warning: dynamic relocation in readonly section `%s'"),
+ h->root.root.string);
info->flags |= DF_TEXTREL;
/* Not an error, just cut short the traversal. */
diff -r e56481826ab8 -r 4682f156bcb1 external/gpl3/binutils/dist/bfd/elfxx-sparc.c
--- a/external/gpl3/binutils/dist/bfd/elfxx-sparc.c Fri Nov 06 04:42:27 2009 +0000
+++ b/external/gpl3/binutils/dist/bfd/elfxx-sparc.c Fri Nov 06 10:59:17 2009 +0000
@@ -2132,6 +2132,10 @@
{
struct bfd_link_info *info = (struct bfd_link_info *) inf;
+ if (info->warn_shared_textrel)
+ (*_bfd_error_handler)
+ (_("warning: dynamic relocation in readonly section `%s'"),
+ h->root.root.string);
info->flags |= DF_TEXTREL;
/* Not an error, just cut short the traversal. */
Home |
Main Index |
Thread Index |
Old Index