[Top][All Lists]

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

[Gcl-devel] Re: function addresses and ld.so

From: Ian Lance Taylor
Subject: [Gcl-devel] Re: function addresses and ld.so
Date: 13 Aug 2003 22:15:14 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Richard Henderson <address@hidden> writes:

> On Wed, Aug 13, 2003 at 04:35:36PM -0700, David Mosberger wrote:
> > Wouldn't, e.g., LD_PRELOADing something break this assumption?
> Yes.  Or, indeed, just recompiling the library could result
> in different PLT offsets within the DSO, even on x86.
> This behaviour is completely broken.  It'll never work reliably.

The unexec function needs to know about the PLT, and it needs to do
the right thing.

The emacs unexec function used to do this for SunOS shared libraries
(which were the basis for ELF shared libraries).  It is at least
theoretically possible to handle this correctly.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]