From: Nick Clifton Date: Thu, 2 May 2019 14:11:39 +0000 (+0100) Subject: Treat the .gnu.debuglink and .gnu.debugaltlink sections as debug sections when readin... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cdc1a970d3249888524d251abfb87a9bdc77434;p=binutils-gdb.git 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0b68dc0a991..676f4ad221b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2019-05-02 Nick Clifton + + PR 24493 + * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and + .gnu.debugaltlink sections as debugging sections. + 2019-04-30 Alan Modra * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel. diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f4bfea0ceb7..c67bfbb0e6d 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;