Cross Compiling for ARM
Matt Johnston
matt at ucc.asn.au
Wed Aug 24 19:35:58 WST 2005
On Wed, Aug 24, 2005 at 10:22:31AM +0200, Steve Comfort wrote:
> Hi,
>
> I have been struggling a bit (6 hours) to figure out what I am doing
> wrong in trying to cross-compile.
>
> The target is an INTEL IXP425.
>
> arm-linux-ld: warning: cannot find entry symbol _start; defaulting to 00009ae8
> circbuffer.o(.text+0x180): In function `cbuf_incrwrite':
> : undefined reference to `__umodsi3'
> circbuffer.o(.text+0x1dc): In function `cbuf_incrread':
> : undefined reference to `__umodsi3'
To me this looks like the compiler and linker might
mismatching versions/targets - the compiler is putting out
object files which expect there to be some system library
(or perhaps libgcc) with a __modsi3 function for example,
but then when it gets linked that function is missing.
Perhaps try adding -lgcc or /path/to/libgcc.a to the LDFLAGS
argument or something? Alternatively, using LD=arm-linux-gcc
with LDFLAGS='-Wl,-EB -L/usr/local/arm-linux/lib/be/' might
do the trick. Let me know how it goes.
Cheers,
Matt
More information about the Dropbear
mailing list