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
[EMAIL PROTECTED], 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

Reply via email to