This is the mail archive of the binutils@sources.redhat.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]

H8/300H and H8/S improvement



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) }
  '




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