What's the meaning of /usr/lib/crt0.o?

What's the meaning of /usr/lib/crt0.o?

Post by Volker Schee » Wed, 11 Oct 1995 04:00:00



Hi Folks,
recently I started to recompile my apsfilter but it's failed, because
/usr/lib/crt0.o had not been found. But it has existed! It must have been
destroyed sometimes, I don't know when.
I got this file back from another machine. But the question still is:
what's the meaning of this file and when could it be destroyed?

Volker

 
 
 

What's the meaning of /usr/lib/crt0.o?

Post by Mitch DSou » Thu, 12 Oct 1995 04:00:00



-->Hi Folks,
-->recently I started to recompile my apsfilter but it's failed, because
-->/usr/lib/crt0.o had not been found. But it has existed! It must have been
-->destroyed sometimes, I don't know when.
-->I got this file back from another machine. But the question still is:
-->what's the meaning of this file and when could it be destroyed?

It contains the bootstrap code for building an executable. You must have
removed it by accident.

Mitch

 
 
 

What's the meaning of /usr/lib/crt0.o?

Post by Volker Schee » Thu, 12 Oct 1995 04:00:00



Quote:> It contains the bootstrap code for building an executable. You must have
> removed it by accident.

Thanks, but has it been ok to take the file from another machine from
which I don't know anything (oh, yes, it's running Linux, of course)? I has
compiled
apsfilter with the new crt0 file, but I don't want that anything get
corrupted sometimes.
Is there a source somewhere?

Volker

 
 
 

What's the meaning of /usr/lib/crt0.o?

Post by Mitch DSou » Thu, 12 Oct 1995 04:00:00



-->
-->

-->
-->> It contains the bootstrap code for building an executable. You must have
-->> removed it by accident.
-->
-->Thanks, but has it been ok to take the file from another machine from

Yup. It is just fine assuming same libc devlopment versions.

-->which I don't know anything (oh, yes, it's running Linux, of course)? I has
-->compiled
-->apsfilter with the new crt0 file, but I don't want that anything get
-->corrupted sometimes.
-->Is there a source somewhere?

Yup. Part of libc. See the GCC-FAQ on ftp.mrc-apu.cam.ac.uk /pub/linux
or URL ftp://ftp.mrc-apu.cam.ac.uk/pub/linux/GCC-FAQ.html

Mitch

 
 
 

1. Needed: ld's /usr/lib/crt0.o

I installed the 'REQ' packages for the SLS GNU C/C++, but I get the following
error when attempting to compile. Note the test program.

/> cat tst.c
#include <stdio.h>
main() {
;
/> gcc tst.c
ld: No such file or directory for crt0.o

I'm not very experienced with ld or even C, but I don't have /usr/lib/crt0.o,
as the man pages for gcc and this error imply I should.

I've installed the following packages:

base      devs      gxx245    joe       man2      quota     term107
bc        efs2      gxxinc24  keytbls   modules   select14  usrbin4
bin       elfabi    gzip101   lilo      mount     shadow    uucp104
bin4      etc       gzip123   lxpatch   mt        shlibs    vgalib
binutils  faq       image     mailx     national  smail     zafix
comms     gcc245    inc442    make      perl      sysadm    zcfix
cpio22a   getty     ipcdelta  man       ps        syslogd   zoneinfo

If you have crt0.o, or know what package it's in or should have been in,
please mail me details or the file, uuencoded.

Thanks.

 - Mark R. Lindsey

2. Scanf ridiculously broken? (Repost)

3. crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000024

4. Converting Type 1 Postrscript fonts to X

5. /usr/lib/gcc-lib/i386-linux and /usr/lib/gcc-lib/i486-linux

6. find_solib : where dose it come ?

7. /usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

8. SMP under Linux ?

9. /usr/lib/crt0.o OpenBSD mingw32

10. Need Help on "crt0: no /usr/lib/ld.so" Problem

11. imake error: /usr/lib/crt0.o <- What is it?

12. gcc giving error _main (multiply defined) /usr/lib/crt0.o

13. Tell "configure" to use /usr/local/lib/sparcv9/ instead of /usr/local/lib/