LD_PRELOAD

Mark Kettenis kettenis@wins.uva.nl
Fri May 21 07:17:00 GMT 1999


   Date: Fri, 21 May 1999 03:08:45 -0400 (EDT)
   From: Andrew Pimlott <pimlott@MATH.HARVARD.EDU>

   On Fri, 21 May 1999, Geoff Keating wrote:

   > Such techniques (overriding routines in the libc) have always been
   > implementation-dependent.  You will probably need to do various
   > special things to make it work with glibc 2.1, if this is possible at
   > all.

   Nonsense.  I have an LD_PRELOAD'ed library I use every day that's source 
   and binary compatible between glibc 2.0 and 2.1, and source compatible 
   between linux and solaris.

Then you are very lucky.  Overloading functions with an LD_PRELOAD'ed
library is a very tricky business, and binary compatibility is not
guaranteed.

Mark


More information about the Libc-alpha mailing list