Results 1 to 3 of 3
hai,
i am tried to compile bootloader(blob)source code for arm processor in i386 machine.I followed the steps given in the readme file. but it shows an error message like -- ...
- 09-01-2008 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 16
cross compilation error -- /usr/local/bin/ld: unrecognized option '--as-needed'
hai,
i am tried to compile bootloader(blob)source code for arm processor in i386 machine.I followed the steps given in the readme file. but it shows an error message like -- "/usr/local/bin/ld: unrecognized option '--as-needed".I compiled in rhel4 machine and the readme file tells the steps in fedora machine.is it make any problem??
Also i have another serious problem in my machine that it is not possible to RUN the normal c programs.I got an error messages-- bash: ./hello: cannot execute binary file.--
how can i overcome this???
with regards
shabeer
- 09-02-2008 #2My experience is that you get this error when the filebash: ./hello: cannot execute binary file.--
is not a proper elf executable. You are compiling
normal C code in the normal way? Are you giving the
compiler some weird options?
If you cannot compile and run a trivial "hello" program,
you may need to reinstall the compiler.
- 09-04-2008 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 25
You will need a cross-compiler ... the line above get me suspicion that/usr/local/bin/ld: unrecognized option '--as-needed"
you use host's linker.
Do you have the executable flag set on that file?bash: ./hello: cannot execute binary file.--
regards,
ndevel.


Reply With Quote
