lkml.org 
[lkml]   [1999]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Replacement of LD_PRELOAD?
From
Date
hashao <hashao@china.com> writes:

> I remember read some discussion about LD_PRELOAD being bad for
> optimization > long time ago (by Ulrich Drepper?). Has the
> situation changed since then. Or is there a > replacement for
> LD_PRELOAD? That is providing a hook function and then > we can
> replace some system or library functions at the run time.

Why should there be a replacement? LD_PRELOAD still works if used
correctly but it is (and in future be even more) true that LD_PRELOAD
will hurt performance. It is *not* a general utility, it is only a
last resort and helper for very special situations. It should never
be generally used.

--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.033 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site