This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [SH] Adjust stack area for simulator
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: binutils <binutils at sourceware dot org>
- Date: Sat, 09 Apr 2016 10:29:27 +0900
- Subject: Re: [SH] Adjust stack area for simulator
- Authentication-results: sourceware.org; auth=none
- References: <1460035182 dot 21967 dot 109 dot camel at t-online dot de> <20160407175449 dot GU6588 at vapier dot lan>
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