From: Matthew Helsley <redacted>
Date: Sat, 27 Aug 2011 16:39:11 -0700
LD_PRELOAD is widely regarded as a debugging and tracing method -- it's not
usually suitable for implementing features. Why? Because there's nothing
stopping an application from resetting LD_PRELOAD and re-exec'ing to escape
the measurements and limitations such a preload implements. Plus naive use
of LD_PRELOAD could easily interfere with other things that use it. For
example what if you want to use DMTCP with this?
LD_PRELOAD is also terrible as a "normal" facility because it breaks
prelinking.