This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: [SH] Adjust stack area for simulator


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

Attachment: signature.asc
Description: Digital signature


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