[ECOS] linking problem

Ganeshan ganeshan@ads-networks.com
Tue Dec 30 11:54:00 GMT 2003


I have compile for the following targets
        h8300h_sim
        h8max
        h8s_sim            //with -ms link option
which pulls libgcc.a..  It gives same linker error for all the targets.

Ganeshan

Andrew Lunn wrote:

> > ./install/lib/libtarget.a(infra_diag.o): In function `.LM38':
> > infra_diag.o(.text+0x233): undefined reference to `___umoddi3'
> > ./install/lib/libtarget.a(infra_diag.o): In function `.LM40':
> > infra_diag.o(.text+0x27d): undefined reference to `___udivdi3'
> > ./install/lib/libtarget.a(infra_diag.o): In function `.LM65':
> > infra_diag.o(.text+0x437): undefined reference to `___umoddi3'
> > ./install/lib/libtarget.a(infra_diag.o): In function `.LM66':
> > infra_diag.o(.text+0x47d): undefined reference to `___udivdi3'
> > ./install/lib/libtarget.a(infra_diag.o): In function `.LM141':
> > infra_diag.o(.text+0x8ef): undefined reference to `___ashrdi3'
> > ./install/lib/libtarget.a(infra_diag.o): In function `.LM162':
> > infra_diag.o(.text+0xa4b): undefined reference to `___negdi2'
> > collect2: ld returned 1 exit status
> >
> > What could be the wrong?
>
> These functions are in libgcc.a, which is part of the
> toolchain. Normally the target.ld will pull this is, but maybe nobody
> has used gcc3 on your particular target.
>
> Look at how other targets build there target.ld
>
>      Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ganeshan.vcf
Type: text/x-vcard
Size: 349 bytes
Desc: Card for Ganeshan
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20031230/e8924991/attachment.vcf>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


More information about the Ecos-discuss mailing list