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
- To: mark@xxxxxxxxxxxxxxxx
- Subject: Re: [arm-gnu] run-time helper-function ABI issue: __aeabi_idivmod
- From: "Chris Hiszpanski" <chiszp@xxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 03:22:28 +0000
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
Yes, the binaries that I download were straight from codesourcery.
It works now. Linking with ld versus gcc seemed to be the problem. Note, in
case someone else is having a similar problem, I also needed to add the
-nostartfiles flag to remove _mainCRTstart, _start, __bss_end__, etc.
namespace conflict errors. Took me a few minutes to figure that one out.
Thank you for the help.
Cheers,
Chris
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/