[SH] Adjust stack area for simulator

Mike Frysinger vapier@gentoo.org
Thu Apr 7 17:54:00 GMT 2016


On 07 Apr 2016 22:19, Oleg Endo wrote:
> When using the default configuration, sh-sim runs effectively with
> something like 3 MBytes of RAM.  This is because the stack base address
> is set to 0x300000 in the default linker script.
> 
> When using sh-sim for running the GCC testsuite, the limited RAM
> results in a bunch of "heap stack collision" type of errors.  The
> attached patch raises the stack base address and VM memory size to
> around 1 GByte.  Although that seems a lot, on modern systems it should
> be fine, as not all reserved memory will be committed, if it's not
> touched.  With this, running the GCC with e.g. -j12 shows no problems
> and in turn quite some failures disappear.

afaict, this is backwards compatible, so the sim change is fine.
although as Nick noted, that should normally be sent to the gdb list.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20160407/55f5f89d/attachment.sig>


More information about the Binutils mailing list