* coffcode.h (coff_new_section_hook): Don't try to align the
authorIan Lance Taylor <ian@airs.com>
Tue, 23 Jan 1996 22:27:47 +0000 (22:27 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 23 Jan 1996 22:27:47 +0000 (22:27 +0000)
.stabstr section.

bfd/ChangeLog
bfd/coffcode.h

index 25230aa04afdac6d827d0a0599a5d758221f8887..e5fe0ebb9b776aac0622e9c77fbc23a21ea42080 100644 (file)
@@ -8,6 +8,9 @@ Tue Jan 23 14:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
 Tue Jan 23 14:22:45 1996  Ian Lance Taylor  <ian@cygnus.com>
 
+       * coffcode.h (coff_new_section_hook): Don't try to align the
+       .stabstr section.
+
        * coffcode.h (coff_set_section_contents): Fix the handling of the
        .lib section to work even if the entire section contents are
        written at once.  From Gvran Uddeborg <gvran@uddeborg.pp.se> and
index 44aea2afcf2d450e8ca86bf096cd31d5d0590ceb..6cd9cc31122d1f237e445daa9ed633d11eef6423 100644 (file)
@@ -906,6 +906,11 @@ coff_new_section_hook (abfd, section)
          || strcmp (section->name, ".dtors") == 0))
     section->alignment_power = 2;
 
+  /* Similarly, the .stabstr section must be aligned to 2**0 at most.  */
+  if (COFF_DEFAULT_SECTION_ALIGNMENT_POWER > 0
+      && strncmp (section->name, ".stabstr", 8) == 0)
+    section->alignment_power = 0;
+
   return true;
 }