Do not mark .reloc sections as containing debug info.
authorNick Clifton <nickc@redhat.com>
Fri, 19 Dec 2003 10:01:59 +0000 (10:01 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 19 Dec 2003 10:01:59 +0000 (10:01 +0000)
bfd/ChangeLog
bfd/coffcode.h

index d818058a31ff05a3339d7aa7e11a4a1daf2c732f..0401565ab9e5e3438cd69b4000a11acc560f3f08 100644 (file)
@@ -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>
 
        * elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of
index ccac05bcaec0bf614f28d386e6b90134ce67cdb2..15d97093f67b0132cd29ddbd21994fb581d3b951 100644 (file)
@@ -1064,7 +1064,11 @@ styp_to_sec_flags (abfd, hdr, name, section, flags_ptr)
          sec_flags &= ~ SEC_READONLY;
          break;
        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;
        case IMAGE_SCN_MEM_SHARED:
          sec_flags |= SEC_SHARED;
This page took 0.03131 seconds and 4 git commands to generate.