]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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)
committerEli Zaretskii <eliz@gnu.org>
Fri, 3 May 2019 07:04:26 +0000 (10:04 +0300)
PR 24493
* coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
.gnu.debugaltlink sections as debugging sections.

(cherry picked from commit 2cdc1a970d3249888524d251abfb87a9bdc77434)

bfd/ChangeLog
bfd/coffcode.h

index 7a58e1757bb7dfed53240208c0be16c325d75e8d..c1040cc7f9e2aac606f9095847093d9e4c8b7aea 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-02-27  Joel Brobecker  <brobecker@adacore.com>
 
        * development.sh (development): Set to false.
index 2cea9988dee33b76b70cd4718831c68ad5c44d07..46e9d1b3022f991a371b518357020f24b24b4752 100644 (file)
@@ -1176,6 +1176,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;