We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I'm trying to porting a program onto a ODROID board. I'm using arm-linux-gnueabihf-objcopy to transform some binary files to .o files, and was able to do so. However, when I try to link these .o files it keep showing errors like : "/usr/bin/ld.bfd.real: unknown architecture of input file `./Release/xxxx.o' is incompatible with arm output". The parameters I used to run arm-linux-gnueabihf-objcopy are "-I binary -O elf32-littlearm". And when I execute `file xxxx.o` I get "ELF 32-bit LSB relocatable, no machine, version 1, not stripped" Any comments would be appreciated!!
I found the solution, should use the command "objcopy -I binary -O elf32-littlearm -B arm", everything's working fine now.