This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: linking problem
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Ganeshan <ganeshan at ads-networks dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 30 Dec 2003 09:59:10 +0100
- Subject: Re: [ECOS] linking problem
- References: <3FF137BA.2F243295@ads-networks.com>
> ./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