This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Gcl-devel] Re: function addresses and ld.so
Greetings, and thanks for your reply! Where might I look for the
SunOS example, if it still exists?
Take care,
Ian Lance Taylor <ian@airs.com> writes:
> Richard Henderson <rth@redhat.com> 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.
>
> Ian
>
>
> _______________________________________________
> Gcl-devel mailing list
> Gcl-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/gcl-devel
>
>
>
--
Camm Maguire camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah