Linking shared libs against shared libs
Daniel Jacobowitz
drow@false.org
Sun Mar 25 19:42:00 GMT 2007
On Sun, Mar 25, 2007 at 07:18:16PM +0200, Oliver Lange wrote:
> I'm trying to link a shared library against a shared library,
> using gcc/ld on Linux and with code like this:
This is really more of a linker question. Followups to
binutils@sourceware.org, please.
> Compiling the sourcecode above like this:
> gcc test.c -o test.so -shared -fPIC [-s]
> The problem is that i'd expect gcc/ld to abort with an error,
> but it just 'successfully' links something.
> Am i missing something? How can ld link against a
> definitely unknown function?
See the linker manual for "-z defs".
--
Daniel Jacobowitz
CodeSourcery
More information about the Gcc
mailing list