[uClibc]about Invalid ELF header

zhang zr zrzhang at linuxmail.org
Mon Mar 17 02:08:54 UTC 2003


hi folks:
my board is Toshiba JMR3927(CPU Tx3p29MIPS).
i want to use uclibc to downsize my filesystem.
i build uClibc-0.9.19 like this:
#make defconfig
#make
#make install
 
then i compile the helloworld like this:
# /usr/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc -o helloworld helloworld.c
# ./helloworld
sh: ./helloworld: No such file or directory
# /usr/mipsel-linux-uclibc/bin/mipsel-uclibc-ldd ./helloworld
         libc.so.0 => /usr/mipsel-linux-uclibc/lib/libc.so.0 (0x00000000)
         /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)

i found there is no ld-uClibc.so.0 in the /lib/.
so i copy the ld-uClibc to /lib
# cp /usr/mipsel-linux-uclibc/lib/ld-uClibc-0.9.19.so /lib/ld-uClibc.so.
# ./helloworld
Invalid ELF header
  
 what's wrong with it ?

Thanks

zhangzr
-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze



More information about the uClibc mailing list