This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Committed: CRIS, ld: Set NO_SMALL_DATA
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 4 Dec 2001 19:32:39 +0100
- Subject: Committed: CRIS, ld: Set NO_SMALL_DATA
Using the recently introduced machinery to get rid of .sbss
& Co. for CRIS too. And fix my pet formatting peeve.
* emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
(OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
__Sbss.
(OTHER_END_SYMBOLS): Fix formatting.
* emulparams/crislinux.sh (NO_SMALL_DATA): Set to yes.
(OTHER_END_SYMBOLS): Fix formatting.
Index: criself.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/criself.sh,v
retrieving revision 1.5
diff -p -c -r1.5 criself.sh
*** criself.sh 2001/11/22 09:08:04 1.5
--- criself.sh 2001/12/04 18:14:54
*************** OTHER_SDATA_SECTIONS="${RELOCATING+PROVI
*** 45,51 ****
OTHER_BSS_END_SYMBOLS='
PROVIDE (__Ebss = .);
PROVIDE (__end = .);
! __Sbss = SIZEOF (.sbss) != 0 ? ADDR (.sbss) : ADDR (.bss);
PROVIDE (_bss_start = __Sbss);
'
--- 45,51 ----
OTHER_BSS_END_SYMBOLS='
PROVIDE (__Ebss = .);
PROVIDE (__end = .);
! __Sbss = ADDR (.bss);
PROVIDE (_bss_start = __Sbss);
'
*************** CTOR_END='
*** 96,102 ****
'
# Also add the other symbols provided for rsim/xsim and elinux.
! OTHER_END_SYMBOLS="
PROVIDE (__Eall = .);
PROVIDE (__Endmem = 0x10000000);
! PROVIDE (__Stacksize = 0);"
--- 96,104 ----
'
# Also add the other symbols provided for rsim/xsim and elinux.
! OTHER_END_SYMBOLS='
PROVIDE (__Eall = .);
PROVIDE (__Endmem = 0x10000000);
! PROVIDE (__Stacksize = 0);
! '
! NO_SMALL_DATA=yes
Index: crislinux.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/crislinux.sh,v
retrieving revision 1.6
diff -p -c -r1.6 crislinux.sh
*** crislinux.sh 2001/11/22 09:08:04 1.6
--- crislinux.sh 2001/12/04 18:14:54
*************** OTHER_BSS_SYMBOLS='PROVIDE (__Sbss = .);
*** 31,37 ****
OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);'
# Also add the other symbols provided for rsim/xsim and elinux.
! OTHER_END_SYMBOLS="
PROVIDE (__Eall = .);
PROVIDE (__Endmem = 0x10000000);
! PROVIDE (__Stacksize = 0);"
--- 31,39 ----
OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);'
# Also add the other symbols provided for rsim/xsim and elinux.
! OTHER_END_SYMBOLS='
PROVIDE (__Eall = .);
PROVIDE (__Endmem = 0x10000000);
! PROVIDE (__Stacksize = 0);
! '
! NO_SMALL_DATA=yes
brgds, H-P