aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-05-02 15:11:39 +0100
committerNick Clifton <nickc@redhat.com>2019-05-02 15:11:39 +0100
commit2cdc1a970d3249888524d251abfb87a9bdc77434 (patch)
tree80791796524eb976f8703bd2acad9bc1b9d9b3d8 /bfd/coffcode.h
parente37f3ecd59eeb56e08c4a210a6e9764f1cedbc83 (diff)
downloadgdb-2cdc1a970d3249888524d251abfb87a9bdc77434.zip
gdb-2cdc1a970d3249888524d251abfb87a9bdc77434.tar.gz
gdb-2cdc1a970d3249888524d251abfb87a9bdc77434.tar.bz2
Treat the .gnu.debuglink and .gnu.debugaltlink sections as debug sections when reading them in from COFF/PE format files.
PR 24493 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and .gnu.debugaltlink sections as debugging sections.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index f4bfea0..c67bfbb 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;