Re: [arm-gnu] run-time helper-function ABI issue: __aeabi_idivmod
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] run-time helper-function ABI issue: __aeabi_idivmod



Chris Hiszpanski wrote:

On the cygwin host, then I manually copied libgcc.a into /usr/local/arm-none-eabi/lib and tried: arm-none-eabi-ld -lgcc ... This fixed the `cannot find -lgcc' issue, but the undefined reference remains. On the GNU/Linux host the undefined reference also remains.

What could be the problem?

First, did you actually download the binaries from our web site? Sometimes other people try to build them, and they don't always get it quite right -- that's why we have the binaries. :-)

Second, you should link with "arm-none-eabi-gcc", not "arm-none-eabi-ld".

As with the command-line example I showed you earlier:

bash-3.00$ arm-none-eabi-gcc -c test.c
bash-3.00$ arm-none-eabi-nm test.o
         U __aeabi_idivmod
00000004 C i
00000004 C j
00000000 T main
bash-3.00$ arm-none-eabi-gcc test.o

Yours,

--
Mark Mitchell
CodeSourcery, LLC
mark@xxxxxxxxxxxxxxxx
(916) 791-8304