Treat the .gnu.debuglink and .gnu.debugaltlink sections as debug sections when readin...
authorNick Clifton <nickc@redhat.com>
Thu, 2 May 2019 14:11:39 +0000 (15:11 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 2 May 2019 14:11:39 +0000 (15:11 +0100)
PR 24493
* coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
.gnu.debugaltlink sections as debugging sections.

bfd/ChangeLog
bfd/coffcode.h

index 0b68dc0a991586f4094b9c39824730f2bf303c53..676f4ad221b3fd1fde43bb0f3e126ff5cab42d66 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 24493
+       * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
+       .gnu.debugaltlink sections as debugging sections.
+
 2019-04-30  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
index f4bfea0ceb706b20c33600b36a32c8c89b810d03..c67bfbb0e6da0494b62abcd4f0baa6d6508aedd2 100644 (file)
@@ -1174,6 +1174,11 @@ styp_to_sec_flags (bfd *abfd,
 #ifdef COFF_LONG_SECTION_NAMES
       || CONST_STRNEQ (name, GNU_LINKONCE_WI)
       || CONST_STRNEQ (name, GNU_LINKONCE_WT)
+      /* FIXME: These definitions ought to be in a header file.  */
+#define GNU_DEBUGLINK          ".gnu_debuglink"
+#define GNU_DEBUGALTLINK       ".gnu_debugaltlink"
+      || CONST_STRNEQ (name, GNU_DEBUGLINK)
+      || CONST_STRNEQ (name, GNU_DEBUGALTLINK)
 #endif
       || CONST_STRNEQ (name, ".stab"))
     is_dbg = TRUE;
This page took 0.026841 seconds and 4 git commands to generate.