This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
H8/300H and H8/S improvement
- To: binutils at sources dot redhat dot com
- Subject: H8/300H and H8/S improvement
- From: law at redhat dot com
- Date: Fri, 07 Sep 2001 11:38:11 -0600
- Reply-to: law at redhat dot com
This patch moves the stack up into higher memory on the H8/300H and H8/S
ports. This makes it much less likely that the stack will overrun other
segments in the program.
* emulparams/h8300helf.sh: Move stack to a much higher memory address.
* emulparams/h8300self.sh: Similarly.
Index: h8300helf.sh
===================================================================
RCS file: /cvs/cvsfiles/devo/ld/emulparams/h8300helf.sh,v
retrieving revision 1.3
diff -c -3 -p -r1.3 h8300helf.sh
*** h8300helf.sh 2001/08/29 17:35:17 1.3
--- h8300helf.sh 2001/09/07 17:30:08
*************** TEMPLATE_NAME=elf32
*** 8,12 ****
EMBEDDED=yes
OTHER_RELOCATING_SECTIONS='
! .stack 0xfefc : { _stack = .; *(.stack) }
'
--- 8,12 ----
EMBEDDED=yes
OTHER_RELOCATING_SECTIONS='
! .stack 0x2fefc : { _stack = .; *(.stack) }
'
Index: h8300self.sh
===================================================================
RCS file: /cvs/cvsfiles/devo/ld/emulparams/h8300self.sh,v
retrieving revision 1.3
diff -c -3 -p -r1.3 h8300self.sh
*** h8300self.sh 2001/08/29 17:35:17 1.3
--- h8300self.sh 2001/09/07 17:30:08
*************** TEMPLATE_NAME=elf32
*** 8,12 ****
EMBEDDED=yes
OTHER_RELOCATING_SECTIONS='
! .stack 0xfefc : { _stack = .; *(.stack) }
'
--- 8,12 ----
EMBEDDED=yes
OTHER_RELOCATING_SECTIONS='
! .stack 0x2fefc : { _stack = .; *(.stack) }
'