This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/gdb-8.3-branch] Treat the .gnu.debuglink and .gnu.debugaltlink sections as debug sections when reading them in from
- From: Eli Zaretskii <eliz at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 3 May 2019 07:05:24 -0000
- Subject: [binutils-gdb/gdb-8.3-branch] Treat the .gnu.debuglink and .gnu.debugaltlink sections as debug sections when reading them in from
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=35f7673945a9c30fca33d981afdcd42f6fd73a6b
commit 35f7673945a9c30fca33d981afdcd42f6fd73a6b
Author: Nick Clifton <nickc@redhat.com>
Date: Thu May 2 15:11:39 2019 +0100
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.
(cherry picked from commit 2cdc1a970d3249888524d251abfb87a9bdc77434)
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/coffcode.h | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7a58e17..c1040cc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 2cea998..46e9d1b 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;