This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking shared libs against shared libs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]