[patch committed] Fix some sh64 FAILs [2]

Kaz Kojima kkojima@rr.iij4u.or.jp
Sun Oct 22 18:13:00 GMT 2006


This is the second patch to fix the failures on sh64-unknown-elf.
Some ld tests fails because the default stack address has affected
with the generic change.  The attached patch restores the old address
0x80000 for _stack.

Regards,
	kaz
--
2006-10-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* emulparams/shelf32.sh: Set default stack to 0x80000.
	* emulparams/shelf64.sh: Likewise.

diff -uprN ORIG/src/ld/emulparams/shelf32.sh LOCAL/src/ld/emulparams/shelf32.sh
--- ORIG/src/ld/emulparams/shelf32.sh	2003-07-30 11:22:07.000000000 +0900
+++ LOCAL/src/ld/emulparams/shelf32.sh	2006-10-21 13:47:26.000000000 +0900
@@ -40,7 +40,7 @@ DTOR_END='___dtors_end = .;'
 # the address is needed to place the .stack section, which in turn is needed
 # to hold the sentinel value(s).
 test -z "$CREATE_SHLIB" && OTHER_SECTIONS="
-  .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x40000)} :
+  .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x80000)} :
   {
     ${RELOCATING+_stack = .;}
     *(.stack)
diff -uprN ORIG/src/ld/emulparams/shelf64.sh LOCAL/src/ld/emulparams/shelf64.sh
--- ORIG/src/ld/emulparams/shelf64.sh	2003-07-30 11:22:07.000000000 +0900
+++ LOCAL/src/ld/emulparams/shelf64.sh	2006-10-21 13:48:59.000000000 +0900
@@ -7,7 +7,7 @@ EXTRA_EM_FILE=
 
 # We do not need .cranges
 test -z "$CREATE_SHLIB" && OTHER_SECTIONS="
- .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x40000)} :
+ .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x80000)} :
   {
     ${RELOCATING+_stack = .;}
     *(.stack)



More information about the Binutils mailing list