This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: Relocs left in shared objects


> Reply-To: ibm-ppc-binutils@swox.com
> Date: 15 Dec 1999 15:09:08 +0100

> One thing I don't understand is that when creating a shared library
> from two (or more) object files that have function calls crossing the
> object file boundaries, there are dynamic relocations for the
> branch/call in the resulting shared object that seem unnecessary to
> me.  This is true for at least elf32-x86 and elf32-ppc.
> 
> Shouldn't the link editor be able to resolve these references itself?

No.  Those routines appear to be in the shared library, but the
application can override them.  So ld.so must be able to see all the
calls.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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