This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking problem


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
begin:vcard 
n:Ganeshan;N
tel;fax:2296502
tel;home:3592259
tel;work:2296484     Ext:25
x-mozilla-html:FALSE
url:www.ads-networks.com
org:Analog and Digital Systems;Networking
version:2.1
email;internet:ganeshan@ads-networks.com
adr;quoted-printable:;;Lavelle Mansion,=0D=0ALavelle Road=0D=0A;Bangalore;Karnataka;560 001;INDIA
fn:Ganeshan
end:vcard

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]