Linker errors when linking RVCT generated lib on GNU tool chain

Asked by Sridhar

Hi,

I have RVCT 4.0 generated library.

I am trying to link the library with GNU 4.8.3 tool chain. I am getting following linker errors:

undefined reference to `__aeabi_memcpy4'

Why GNU linker is not able to resolve this defintion?

I am using following compiler(armcc) options in RVCT4.0

-c -Ono_memcpy --arm_linux --no_unaligned_access --apcs /interwork --arm --c90 --cpu=ARM1136J-S -O3 --no_debug_macros --split_sections --gnu --no_hide_all --library_interface=aeabi_glibc --enum_is_int

Please let me know what I am missing while compiling?

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Andre Vieira
Solved:
Last query:
Last reply:
Revision history for this message
Best Andre Vieira (andre-simoesdiasvieira) said :
#1

Hi Sridhar,

Please try to use our toolchain with release 4.9.3 or higher. Looking at the release notes from 4.9.3 in https://launchpad.net/gcc-arm-embedded/+announcement/13652. "* Define aeabi_memcpy and aeabi_memcpy4 routines in newlib."

Also be aware that we release our toolchain with newlib and not glibc.

Cheers,
Andre

Revision history for this message
Sridhar (asridhareng) said :
#2

Thanks Andre Vieira, that solved my question.