hidden symbol `__divdi3' is referenced by DSO

Jeff Johnston jjohnstn@redhat.com
Fri Dec 3 21:22:00 GMT 2004


It really only needs to be done when we finally form the libraries in the 
top-level Makefile.  Could you try the accompanying patch and verify it works 
for you?  The problem doesn't show itself on Red Hat Linux.

-- Jeff J.

Shaun Jackman wrote:
> 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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shlib.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20041203/2161f68e/attachment.ksh>


More information about the Newlib mailing list