DJGPP linker script update

Mark E. snowball3@softhome.net
Sun Sep 22 13:17:00 GMT 2002


Hello all,
This patch updates DJGPP's linker script to handle bss unique sections. Could someone please apply 
this?

ld/Changelog:

2002-09-22  Mark Elbrecht  <snowball3@softhome.net>

	* scripttempl/i386go32.sc: Handle bss unique sections.

Index: i386go32.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386go32.sc,v
retrieving revision 1.7
diff -c -p -r1.7 i386go32.sc
*** i386go32.sc	23 Mar 2001 23:05:07 -0000	1.7
--- i386go32.sc	22 Sep 2002 17:20:15 -0000
*************** SECTIONS
*** 57,63 ****
    ${CONSTRUCTING+${RELOCATING-$DTOR}}
    .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
    { 					
!     *(.bss)
      *(COMMON)
      ${RELOCATING+ end = . ; PROVIDE(_end = .) ;}
      ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
--- 57,63 ----
    ${CONSTRUCTING+${RELOCATING-$DTOR}}
    .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
    { 					
!     *(.bss${RELOCATING+ .bss.* .gnu.linkonce.b.*})
      *(COMMON)
      ${RELOCATING+ end = . ; PROVIDE(_end = .) ;}
      ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}



More information about the Binutils mailing list