[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shlib-with-non-pic-code



On Tue, Aug 29, 2006 at 05:13:10PM +0200, Christian Aichinger <Greek0@gmx.net> wrote:
> On Tue, Aug 29, 2006 at 08:59:19AM +0200, Mike Hommey wrote:
> > Now, it seems the involved code doesn't set visibility. The best for
> > Michael to do is to grep PLT in the generated assembler code and check
> > what can be generating those.
> 
> Searching for PLT won't help, you won't find text relocations that
> way.
> 
> Text relocations result when library code assumes that itself or
> other libraries are loaded at specific addresses. 
> 
> However PLT/GOT is a mechanism to make binaries/libraries
> independent of their load addresses, i.e. to avoid text relocations
> in the first place.

Dammit, that was the other way around, it's when you find PLT that
you're safe.

Mike



Reply to: