mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 23:26:51 +08:00
Do not mark .reloc sections as containing debug info.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-12-19 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* coffcode.h (styp_to_sec_flags): Don't treat .reloc section
|
||||||
|
as SEC_DEBUGGING.
|
||||||
|
|
||||||
2003-12-18 Richard Sandiford <rsandifo@redhat.com>
|
2003-12-18 Richard Sandiford <rsandifo@redhat.com>
|
||||||
|
|
||||||
* elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of
|
* elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of
|
||||||
|
@ -1064,7 +1064,11 @@ styp_to_sec_flags (abfd, hdr, name, section, flags_ptr)
|
|||||||
sec_flags &= ~ SEC_READONLY;
|
sec_flags &= ~ SEC_READONLY;
|
||||||
break;
|
break;
|
||||||
case IMAGE_SCN_MEM_DISCARDABLE:
|
case IMAGE_SCN_MEM_DISCARDABLE:
|
||||||
sec_flags |= SEC_DEBUGGING;
|
/* The MS PE spec sets the DISCARDABLE flag on .reloc sections
|
||||||
|
but we do not want them to be labelled as debug section, since
|
||||||
|
then strip would remove them. */
|
||||||
|
if (strncmp (name, ".reloc", sizeof ".reloc" - 1) != 0)
|
||||||
|
sec_flags |= SEC_DEBUGGING;
|
||||||
break;
|
break;
|
||||||
case IMAGE_SCN_MEM_SHARED:
|
case IMAGE_SCN_MEM_SHARED:
|
||||||
sec_flags |= SEC_SHARED;
|
sec_flags |= SEC_SHARED;
|
||||||
|
Reference in New Issue
Block a user