This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
hidden symbol `__divdi3' is referenced by DSO
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 2 Dec 2004 11:02:58 -0800
- Subject: hidden symbol `__divdi3' is referenced by DSO
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
When trying to link "Hello, world!" with a native shared newlib
library, I get this hidden symbol error. The same application links
perfectly with -static.
Thanks in advance for any help you can give.
Please cc me in your reply. Cheers,
Shaun
newlib 1.12.0 (CVS 2004-11-26)
gcc 3.3.4
$ cc -g -O2 -W -Wall -Werror -I/home/sjackman/include/newlib -nostdlib
-L/home/sjackman/lib/newlib /home/sjackman/lib/newlib/crt0.o hello.c
-lc -lm -lgcc -o hello
/usr/bin/ld: hello: hidden symbol `__divdi3' in
/usr/lib/gcc-lib/i486-linux/3.3.4/libgcc.a(_divdi3.oS) is referenced
by DSO
collect2: ld returned 1 exit status
make: *** [hello] Error 1
$ cc --version | head -1
cc (GCC) 3.3.4 (Debian 1:3.3.4-13)