From ab5ec407a6dad56dda2f866343e65df3eaeb019d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 3 May 2000 05:41:09 +0000 Subject: [PATCH] go32 bss alignment --- bfd/ChangeLog | 6 ++++++ bfd/coff-go32.c | 2 ++ bfd/coff-stgo32.c | 4 +++- gas/ChangeLog | 5 +++++ gas/config/tc-i386.h | 1 + 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 742ebfd3079..f49b6809435 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-04-29 Andreas Jaeger * libbfd-in.h: Correctly check GCC version. 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..5a7a716a9e0 100644 --- a/bfd/coff-stgo32.c +++ b/bfd/coff-stgo32.c @@ -1,5 +1,5 @@ /* BFD back-end for Intel 386 COFF files (go32 variant with a stub). - Copyright 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Written by Robert Hoehne. This file is part of BFD, the Binary File Descriptor library. @@ -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 f27d9848f24..46aab83592e 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-04-29 Andreas Jaeger * as.h: Correctly check GCC version. 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) \ -- 2.39.5