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

Author: Carolyn Oates (traisen)
Posted on:

Rate this post
0 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

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
bi/bin/ld.exe:  failed to merge target specific data of file 

Author: Duke Scarring (Guest)
Posted on:

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



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.