* coffcode.h (coff_new_section_hook): Don't try to align the
[binutils-gdb.git] / bfd / coffcode.h
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;
 }