go32 bss alignment.
authorAlan Modra <amodra@gmail.com>
Wed, 3 May 2000 04:25:33 +0000 (04:25 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 3 May 2000 04:25:33 +0000 (04:25 +0000)
bfd/ChangeLog
bfd/coff-go32.c
bfd/coff-stgo32.c
gas/ChangeLog
gas/config/tc-i386.h

index 10112b2db165a90a75926715055067774daf24ba..31db2ae00ba731bd23b57fbfd446aab604f6ef75 100644 (file)
@@ -1,3 +1,9 @@
+2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
+
+       * 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  <hjl@gnu.org>
 
        * elf.c (prep_headers): USe ELFOSABI_NONE instead of
index a6b28e12eb46265c9eb24a09cbfd66540fca65d1..720f4be14246ad1f5bd1b018f972c3cef4bdcc27 100644 (file)
@@ -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"), \
index 26dba40b5e3d3ade8ef9c5b9b55afb96cf2ed1de..45e7d62795af989755942c8793ebfcfd0e34fed3 100644 (file)
@@ -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"
index f59311fa6c66dbb57f23bddf92bc699e9d1e469f..458610770f7cc55cf6641dcc355f85d162d358d9 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
+
+       * gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
+       for the .bss section too.
+
 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
 
        * configure.in: Set em=linux for hppa-*-linux.
index 1d830ee9b4e417b166bc52bbac3ca1312bf76b46..2bf9a7f89cf08ecdf4f9c8545bc68241c7b06c72 100644 (file)
@@ -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)   \