From 4a3d3b42bd6161b62d7871f683a408e9e2be45e0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 23 Jan 1996 22:27:47 +0000 Subject: * coffcode.h (coff_new_section_hook): Don't try to align the .stabstr section. --- bfd/coffcode.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bfd/coffcode.h') diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 44aea2a..6cd9cc3 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -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; } -- cgit v1.1