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 Thu, 2016-04-07 at 13:54 -0400, Mike Frysinger wrote:
> 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.

Sorry, I forgot about the separate GDB list.  With both things being in
one repo and all that ...

I've committed and pushed the patch.  Will send a message to the GDB
for bookkeeping.

Cheers,
Oleg


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