Mail Archives: djgpp-workers/2001/07/29/04:54:11
On Sun, 29 Jul 2001, Andrew Cottrell wrote:
> > Note that now it's cc1 which crashes, not Make. So maybe Charles is
> > right, and Unixy sbrk is the solution. Hmm... Maybe try building GCC
> > with Unixy sbrk and se if that helps (you will have to do that for
> > both gcc.exe and cc1.exe).
>
> I seem to have missed something. I have not suceeded in building GCC with
> the crt0 startup flag set to use the Unixy sbrk. I tried to build GCC with
> the change above in GCC.C and in TOPLEVL.C, and in other files where I found
> what looked like a real main() function. This did not work as it appears
> that TOPLEVL.O is included in a number of EXE's along with the real main()
> function.
You should be able to use "nm -A" or some switch to `ld' (sorry, I don't
remember it off-hand, but the docs should help) to show you which *.o
files get linked into what programs. Then add the __crt0_startup_flags
line in only one of them.
> My question is where is _CRT0_FLAG_UNIX_SBRK used in the startup code?
It's in crt1.c.
- Raw text -