Subject: Re: Compiling big programs
To: David Forbes <dmf20@hermes.cam.ac.uk>
From: Richard Earnshaw <rearnsha@arm.com>
List: port-arm32
Date: 02/04/1999 10:16:06
> I've been trying to compile a program I downloaded which has a lot of
> local variables in main()...about 8Mb worth. It compiles okay, but when I
> come to run it, it SEGVs before doing anything.
>
> gdb backtrace tells me:
>
> __main()
> __start()
>
> Presumably, it's having trouble with all the local variables. Is there
> any way around this? (Other than rewriting the program...)
>
> I've tried specifying -static and using ulimit, both to no avail.
>
What precisely did you ulimit. If they are local variables, you probably
need to ulimit the stack as well as the data segment.
Just a suggestion.
R.