diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-01-23 22:27:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-01-23 22:27:47 +0000 |
commit | 4a3d3b42bd6161b62d7871f683a408e9e2be45e0 (patch) | |
tree | 3ee3f1a1c32abdbb6e8654708b036131f6e13b15 /bfd/coffcode.h | |
parent | 87273c713f0e22999692252d3dcdbb5613ab5729 (diff) | |
download | gdb-4a3d3b42bd6161b62d7871f683a408e9e2be45e0.zip gdb-4a3d3b42bd6161b62d7871f683a408e9e2be45e0.tar.gz gdb-4a3d3b42bd6161b62d7871f683a408e9e2be45e0.tar.bz2 |
* coffcode.h (coff_new_section_hook): Don't try to align the
.stabstr section.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |