OK, it's definitely Monday....
I'm trying to build a really simple program and all I get out of it is:
:root# /bin/compass
-bash: /bin/compass: cannot execute binary file
Now you would assume that it's in the wrong format. But no:
:root# file /bin/compass
/bin/compass: ELF 32-bit LSB relocatable, ARM, version 1 (ARM), not
stripped
Now just to make sure I'm not going crazy, I compiled a simple hello
world program and got the same result:
:root# sh /bin/hello
/bin/hello: /bin/hello: cannot execute binary file
:root# file /bin/hello
/bin/hello: ELF 32-bit LSB relocatable, ARM, version 1 (ARM), not stripped
Both of these programs compile really small:
:root# ls -l /bin/hello /bin/compass
-rwxr-xr-x 1 root root 1860 Jul 30 14:39 /bin/compass*
-rw-r--r-- 1 root root 804 Jul 30 14:52 /bin/hello
Just to see if it is a toolchain issue, I rebuilt some other programs;
they work just fine. Can anyone shed any light on this?
Is there such a thing as "too small"? It seems like the programs
above are way too small for executables...
--Yan
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|