This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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: hidden symbol `__divdi3' is referenced by DSO


On Fri, 03 Dec 2004 14:29:37 -0500, Jeff Johnston <jjohnstn@redhat.com> wrote:
> 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.

Your patch worked well. Thanks Jeff!

Cheers,
Shaun

$ cc -nostdlib -L/usr/lib/newlib /usr/lib/newlib/crt0.o hello.c -lc -o hello
$ ldd hello
                libc-newlib.so.0 => /usr/lib/libc-newlib.so.0 (0x4002d000)
$ ./hello
Hello, world!


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