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 | |
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.
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/coffcode.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 25230aa..e5fe0eb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 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; } |