delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/20/06:20:57

From: Rod DOT Bates AT wichita DOT boeing DOT com (Bates, Rod)
Subject: crt0, crt1, _stderr, etc.
20 Aug 1998 06:20:57 -0700 :
Message-ID: <6C7E2A10BB01D111929500400B406DDEE63919.cygnus.gnu-win32@xch-wch-02.ks.boeing.com>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

Can anyone tell me more about what crt1 and crt0 are?

Apparently, there was a crt1.o included in earlier 
cygwin releases, perhaps 18.  It defines, among
other things, _stderr, _stdin, and -stdout.

B19 seems to have replaced it with crt0.o,  which eliminates
these.  crt0.o looks like a replacement for crt1.o,
because they both define _mainCRTStartup.  

The respective versions of gcc include these respective
files in the ld command they issue, without being asked
by the issuer of the gcc command.  

In B19, I looked systematically through all *.o and lib*.a
files and found no _stderr defined anywhere.   
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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