RE: crt source files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: ptm@ [Tobin] 

> I'm trying to find 
 [ snip ] 

> collect2 

This appears to be part of gcc: 

   D:\src\gcc>dir /s/b coll*  
   D:\src\gcc\gcc\collect2.c    
   D:\src\gcc\gcc\collect2.h   
   D:\src\gcc\gcc\doc\collect2.texi     

> ld - the linker 
 
 This is part of "binutils". 
 http://www.gnu.org/software/binutils  

> ld-linux.so.2 - Dynamic loader linked 

 Not sure. Probably either in the Linux kernel source, or glibc.  
 I don't see it in glibc, but I didn't look much.  

> crt0.o - C Run-Time Zero launcher. Used with "ar" absolute archive 
>  [snip] 

Ditto. Or maybe in gcc. Could be this isn't needed in these days of most things
being dynamically linked. 

 > crt1.o - C Run-Time One launcher. Used with ELF dynamic library formats. 
 > crti.o - C Run-Time Initialize? launcher. Used for odd processor 
 > crtbegin.o - Used to execute functions located in the ".init" section 
 >  crtend.o - Used to execute functions located in the ".fini" section 
 > crtn.o - Closes any open file descriptors and returns to the operating 

These all appear to be part of gcc:

  D:\src\gcc>dir /s/b crt*  

  D:\src\gcc\gcc\crtstuff.c  
  D:\src\gcc\gcc\config\alpha\crtfastmath.c  
  D:\src\gcc\gcc\config\arm\crti.asm  
  D:\src\gcc\gcc\config\arm\crtn.asm  
  D:\src\gcc\gcc\config\bfin\crti.s  
  D:\src\gcc\gcc\config\bfin\crtlibid.s  
  D:\src\gcc\gcc\config\bfin\crtn.s  
  D:\src\gcc\gcc\config\fr30\crti.asm  
  D:\src\gcc\gcc\config\fr30\crtn.asm  
  D:\src\gcc\gcc\config\h8300\crti.asm  
  D:\src\gcc\gcc\config\h8300\crtn.asm  
  D:\src\gcc\gcc\config\i386\crtdll.h  
  D:\src\gcc\gcc\config\i386\crtfastmath.c  
  D:\src\gcc\gcc\config\i386\crtprec.c  
  D:\src\gcc\gcc\config\ia64\crtbegin.asm  
  D:\src\gcc\gcc\config\ia64\crtend.asm  
  D:\src\gcc\gcc\config\ia64\crtfastmath.c  
  D:\src\gcc\gcc\config\ia64\crti.asm  
  D:\src\gcc\gcc\config\ia64\crtn.asm  
  D:\src\gcc\gcc\config\m68k\crti.s  
  D:\src\gcc\gcc\config\m68k\crtn.s  
  D:\src\gcc\gcc\config\mcore\crti.asm  
  D:\src\gcc\gcc\config\mcore\crtn.asm  
  D:\src\gcc\gcc\config\mips\crti.asm  
  D:\src\gcc\gcc\config\mips\crtn.asm  
  D:\src\gcc\gcc\config\mmix\crti.asm  
  D:\src\gcc\gcc\config\mmix\crtn.asm  
  D:\src\gcc\gcc\config\mt\crti.asm  
  D:\src\gcc\gcc\config\mt\crtn.asm  
  D:\src\gcc\gcc\config\rs6000\crtsavres.asm  
  D:\src\gcc\gcc\config\score\crti.asm  
  D:\src\gcc\gcc\config\score\crtn.asm  
  D:\src\gcc\gcc\config\sh\crt1.asm  
  D:\src\gcc\gcc\config\sh\crti.asm  
  D:\src\gcc\gcc\config\sh\crtn.asm  
  D:\src\gcc\gcc\config\sparc\crtfastmath.c  
  D:\src\gcc\gcc\config\xtensa\crti.asm  
  D:\src\gcc\gcc\config\xtensa\crtn.asm  
 
I only looked for stuff in the most rudimentry way.
It could like:
 gcc -c crt1.c -DBUILD_CRT0 -o crt0.c 

So you won't find crt0* in the tree.

To find stuff like that, search the config* and makefile* files.
 cd /d d:\src  
 findstr /s /p crt0 *mak* *conf*  

 or such. (yeah, yeah, everyone here uses Unix and grep...I use a
 gui for real search tasks..)  


 > /tmp/ccPzplAb.o - Your temporary relocatable object file. 

This is just a temporary file. 

 - Jay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux