Warning of "ld"

Arash Razmjoo a-razmjoo@hotmail.com
Sun May 27 20:26:00 GMT 2007


Hello developers
I wrought a single program in C,compiled it with gcc 3.2.2 20030222 with 
this command:

  gcc -c test4.c

and  "gcc" gave me an object file "test4.o" without any messages.Then I 
tried to link it with ld 2.13.90.0.18 with this instruction:

ld test4.o -lc -o test4

but "ld" has gave me this message:

ld: Warning: cannot find entry symbol _start; defaulting to 08048184

When i tried to run "test4",this message appeard:

bash2: /home/.../test4: usr/lib/libc.so.1: bad ELF interpreter: No such file 
or directory

Now please tell me it is caused by "gcc" or "ld" ?

Arash

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the Binutils mailing list