From: Alan Modra Date: Wed, 3 May 2000 04:25:33 +0000 (+0000) Subject: go32 bss alignment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da5d444c29c85d0d9b394d913b97b1a9e9418995;p=binutils-gdb.git go32 bss alignment. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 10112b2db16..31db2ae00ba 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2000-05-03 Mark Elbrecht + + * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for + the .bss section. + * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. + 2000-05-02 H.J. Lu * elf.c (prep_headers): USe ELFOSABI_NONE instead of diff --git a/bfd/coff-go32.c b/bfd/coff-go32.c index a6b28e12eb4..720f4be1424 100644 --- a/bfd/coff-go32.c +++ b/bfd/coff-go32.c @@ -29,6 +29,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_EXACT_MATCH (".text"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".bss"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.d"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.t"), \ diff --git a/bfd/coff-stgo32.c b/bfd/coff-stgo32.c index 26dba40b5e3..45e7d62795a 100644 --- a/bfd/coff-stgo32.c +++ b/bfd/coff-stgo32.c @@ -46,6 +46,8 @@ { COFF_SECTION_NAME_EXACT_MATCH (".data"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_EXACT_MATCH (".text"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".bss"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 } #include "bfd.h" diff --git a/gas/ChangeLog b/gas/ChangeLog index f59311fa6c6..458610770f7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-05-03 Mark Elbrecht + + * gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4 + for the .bss section too. + 2000-05-02 Alan Modra * configure.in: Set em=linux for hppa-*-linux. diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 1d830ee9b4e..2bf9a7f89cf 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -120,6 +120,7 @@ extern int tc_coff_sizemachdep PARAMS ((fragS *frag)); #define SUB_SEGMENT_ALIGN(SEG) \ ((strcmp (obj_segment_name (SEG), ".text") == 0 \ || strcmp (obj_segment_name (SEG), ".data") == 0 \ + || strcmp (obj_segment_name (SEG), ".bss") == 0 \ || strncmp (obj_segment_name (SEG), ".gnu.linkonce.t", 15) == 0 \ || strncmp (obj_segment_name (SEG), ".gnu.linkonce.d", 15) == 0 \ || strncmp (obj_segment_name (SEG), ".gnu.linkonce.r", 15) == 0) \