This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: hidden symbol `__divdi3' is referenced by DSO
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 3 Dec 2004 11:02:08 -0800
- Subject: Re: hidden symbol `__divdi3' is referenced by DSO
- References: <7f45d939041203092044772aef@mail.gmail.com> <20041203173417.GB5149@sunsite.mff.cuni.cz> <7f45d93904120309522394b9ac@mail.gmail.com>
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
I added -lgcc to LIBS and my problem is solved. It seems to me that
every Makefile.am that specifies -nostdlib should also specify -lgcc.
This affects some thirty odd files though.
Cheers,
Shaun
> newlib's libc.so has undefined references to __divdi3 and __udivdi3.
> It seems to me these should have been resolved at the link time of
> libc.so, from libgcc.a. libm.so does not have this problem. I'll see
> if I can find the cause.
>
> Cheers,
> Shaun