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


> ./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

-- 
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]