This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
-z defs question
- From: Kenny Simpson <theonetruekenny at yahoo dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 26 Feb 2002 15:20:47 -0800 (PST)
- Subject: -z defs question
Hi,
I've read over the man pages, done google searches,
but haven't found an answer to the following:
I would like some way at build time to assert that a
.so will resolve when dlopen'd at run time. That is
that no symbols remain undefined, that the dependent
libraries are found and resolve properly, etc..
I see this "-z defs" or "--no-undefined" flags, but
they seem to give me errors about symbols from libc,
libdl, etc...
Small test case:
test.c:
// empty file
gcc test.c -ldl -shared -fPIC test.so
-Wl,--no-undefined
This gives me many errors from /lib/libc.so.6 about
undefined references to _dl_* and a few __libc_
symbols.
This is an update RH7.2 setup.
gcc -v:
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
ld -v:
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
kernel:
2.4.7-10
PIII/450 w/128MB
Please let me know what I'm missing, if any further
info is needed, or if -z defs just plain doesn't do
what I think it does.
Thanks,
-Kenny
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com