This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking shared libs against shared libs
- From: Daniel Jacobowitz <drow at false dot org>
- To: Oliver Lange <bloody at bloody dot in-berlin dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 25 Mar 2007 13:29:44 -0400
- Subject: Re: Linking shared libs against shared libs
- References: <4606AED8.7050208@bloody.in-berlin.de>
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