H8/300H and H8/S improvement
law@redhat.com
law@redhat.com
Fri Sep 7 10:36:00 GMT 2001
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) }
'
More information about the Binutils
mailing list