This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
hidden symbol `__divdi3' is referenced by DSO
- From: Shaun Jackman <sjackman at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 3 Dec 2004 09:20:44 -0800
- Subject: hidden symbol `__divdi3' is referenced by DSO
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
I built newlib (CVS 2004-12-02) as a native shared library for
i686-pc-linux-gnu. I'm now trying to link "Hello, world!" using the
newlib shared library. When I attempt the link, I get a "hidden
symbol" error. The same link works well if I link statically.
I've googled around for the error message, and found a number of hits,
but no clear solutions. What does this error actually mean, and how do
I trouble shoot it?
Please cc me in your reply. Thanks,
Shaun
$ cc -nostdlib -L/usr/lib/newlib -Wl,-rpath /usr/lib/newlib
/usr/lib/newlib/crt0.o hello.o -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
$ cc --version | head -1
cc (GCC) 3.3.4 (Debian 1:3.3.4-13)
$ ld --version | head -1
GNU ld version 2.15
$ uname -a
Linux quince 2.6.8.1 #1 Mon Oct 4 13:42:45 PDT 2004 i686 GNU/Linux