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

Re: question regarding prelinking



> Actually, unless I'm misunderstanding something, shared lib pages are
> not rewritten (excluding data pages of course).  That's what PIC code
> is about.  A register keeps a pointer to the front of the shared
> segment and all refs to a symbol within are based on an offset from
> that register.  So it's not swapping.  If anything it's runtime
> slowness not startup.

If a shared library contains an initialized pointer to a function (e.g. in 
virtual tables), if _IS_ overwriten during relocation.
According to it's semantics, such pointer should contain the address, not 
offfset.
So guess what happens if the shared lib is mapped to different adresses in 
different processes using it.



Reply to: