This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DJGPP alignment patch


Hello,

This patch changes the .bss section to 16-byte alignment to match the .data and 
.text sections. This after some requests for this change via e-mail.

gas/Changelog:

2000-04-29 Mark Elbrecht <snowball3@bigfoot.com>

	* gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4 for
	  the .bss section too.

bfd/Changelog:

2000-04-29 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.

*** bfd/coff-go32.c.orig	Thu Feb 10 14:18:54 2000
--- bfd/coff-go32.c	Sat Apr 29 11:30:56 2000
*************** Foundation, Inc., 59 Temple Place - Suit
*** 29,34 ****
--- 29,36 ----
    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"), \
*** bfd/coff-stgo32.c.orig	Sun Aug  8 23:56:16 1999
--- bfd/coff-stgo32.c	Sat Apr 29 11:31:42 2000
***************
*** 46,51 ****
--- 46,53 ----
  { 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"
*** gas/config/tc-i386.h.orig	Thu Feb 24 10:42:34 2000
--- gas/config/tc-i386.h	Sat Apr 29 10:53:24 2000
*************** extern int tc_coff_sizemachdep PARAMS ((
*** 120,125 ****
--- 120,126 ----
  #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)	\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]