aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorOleg Endo <olegendo@gcc.gnu.org>2016-04-09 10:24:00 +0900
committerOleg Endo <olegendo@gcc.gnu.org>2016-04-09 10:24:00 +0900
commit417a667c4afc1e04ba2caadc3f4051e0590585bb (patch)
tree23969bc172c2172f1a3aafde7ada4bb44ad2cdc7 /ld
parent9f5a6a60d9858f54d95443a2adf7d8077ee1528b (diff)
downloadbinutils-417a667c4afc1e04ba2caadc3f4051e0590585bb.zip
binutils-417a667c4afc1e04ba2caadc3f4051e0590585bb.tar.gz
binutils-417a667c4afc1e04ba2caadc3f4051e0590585bb.tar.bz2
Adjust default memory size and stack base address for SH simulator.
ld/ChangeLog: * sh/interp.c (sim_memory_size): Default init to 30. (parse_and_set_memory_size): Adjust upper bound to 31. sim/ChangeLog: * sh/interp.c (sim_memory_size): Default init to 30. (parse_and_set_memory_size): Adjust upper bound to 31.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emulparams/shelf.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 3c40941..3d42d9f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-09 Oleg Endo <olegendo@gcc.gnu.org>
+
+ * emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
+
2016-04-08 Alan Modra <amodra@gmail.com>
PR 18452
diff --git a/ld/emulparams/shelf.sh b/ld/emulparams/shelf.sh
index 5757b81..83680a6 100644
--- a/ld/emulparams/shelf.sh
+++ b/ld/emulparams/shelf.sh
@@ -18,13 +18,13 @@ CTOR_START='___ctors = .;'
CTOR_END='___ctors_end = .;'
DTOR_START='___dtors = .;'
DTOR_END='___dtors_end = .;'
-# This is like setting STACK_ADDR to 0x300000, except that the setting can
+# This is like setting STACK_ADDR to 0x3FFFFF00, except that the setting can
# be overridden, e.g. --defsym _stack=0x0f00, and that we put an extra
# sentinal value at the bottom.
# N.B. We can't use PROVIDE to set the default value in a symbol because
# 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 : 0x300000)} :
+test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : 0x3FFFFF00)} :
{
${RELOCATING+_stack = .;}
*(.stack)