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 Print the symbol that caused...



details:   https://anonhg.NetBSD.org/src/rev/fdc5a97b8d6e
branches:  trunk
changeset: 814956:fdc5a97b8d6e
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 22 17:40:36 2016 +0000

description:
Print the symbol that caused the text relocation for m68k like we do for
other platforms.

diffstat:

 external/gpl3/binutils/dist/bfd/elf32-m68k.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r f4d53c0fe5c3 -r fdc5a97b8d6e external/gpl3/binutils/dist/bfd/elf32-m68k.c
--- a/external/gpl3/binutils/dist/bfd/elf32-m68k.c      Fri Apr 22 17:39:38 2016 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-m68k.c      Fri Apr 22 17:40:36 2016 +0000
@@ -2813,7 +2813,13 @@
                  && !(ELF32_R_TYPE (rel->r_info) == R_68K_PC8
                       || ELF32_R_TYPE (rel->r_info) == R_68K_PC16
                       || ELF32_R_TYPE (rel->r_info) == R_68K_PC32))
-                   info->flags |= DF_TEXTREL;
+               {
+                 if (info->warn_shared_textrel)
+                   (*_bfd_error_handler)
+                     (_("warning: dynamic relocation in readonly section `%s'"),
+                     h->root.root.string); 
+                 info->flags |= DF_TEXTREL;
+               }
 
              sreloc->size += sizeof (Elf32_External_Rela);
 
@@ -3431,6 +3437,10 @@
               s = s->next)
            if ((s->section->flags & SEC_READONLY) != 0)
              {
+               if (info->warn_shared_textrel)
+                 (*_bfd_error_handler)
+                   (_("warning: dynamic relocation in readonly section `%s'"),
+                   h->root.root.string); 
                info->flags |= DF_TEXTREL;
                break;
              }



Home | Main Index | Thread Index | Old Index