www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/07/29/04:54:11

Date: Sun, 29 Jul 2001 11:30:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andrew Cottrell <acottrel AT ihug DOT com DOT au>
cc: sandmann AT clio DOT rice DOT edu, djgpp-workers AT delorie DOT com
Subject: Re: Make 3.791 on Windows 2000 test
In-Reply-To: <000d01c11806$ff791400$0a02a8c0@acceleron>
Message-ID: <Pine.SUN.3.91.1010729112653.680W-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019