EmbDev.net

Forum: ARM programming with GCC/GNU tools Linking arm-elf and arm-none-eabi


von Carolyn O. (traisen)


Rate this post
useful
not useful
Currently we use Cmake with arm-elf-gcc as the compiler.
I wanted to try arm-none-eabi toolchain.

I am trying to understand how to go back and forth between arm-elf-gcc
compile and link and arm-none-eabi-gcc compile and link.
I switched the compiler and everything compiles, but linking I get the 
error at the bottom.

I am not clear on the linking. Can anyone tell me how or tell me where 
its explained. I have the Yagarto example, but when I tried going in the 
other direction by changing the makefile from none-eabi to elf - that 
didn't work either. So they must used either a different linker or the 
options are so different you have to change more options... I havn't 
found documentation on linkers differences. Just eabi is more general.

Thanks... arm-none-eabi link error below


c:/program 
files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-ea 
bi/bin/ld.exe:  error: Source object 
CMakeFiles/forte.dir/core/extevhan.cpp.o has EABI version 5, but target 
forte.elf has EABI version 0
c:/program 
files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-ea 
bi/bin/ld.exe:  failed to merge target specific data of file 
CMakeFiles/forte.dir/core/extevhan.cpp.o

von Duke Scarring (Guest)


Rate this post
useful
not useful
Maybe you better cleanup the project before changing the compiler. Both 
produce different object code which is not linkable together.

Duke

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.