This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Greetings, and thanks for this!  Your comment pertains to referencing
functions in the shared library via this method, right?  What about
functions in the .text (and actually also .data) sections of the
executable itself?  These would seem only to be in jeopardy if a
'recompile' of a shared library resulted in a different mapping for
the sections of the executable itself, at least on non-function
descriptor architectures, no?

Take care,

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.
> 
> 
> r~
> 
> 
> _______________________________________________
> 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


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