Linking arm-elf and arm-none-eabi

OP #2278815
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.