On Wed, Oct 08, 2003 at 03:39:21PM -0400, Linse Pallan wrote:
> Can anyone help me ?

You can avoid rebuilding glibc by implementing the functions
that you want to override in a shared object, and using
system-wide preloading by specifying the library in
/etc/ld.so.preload.  See the man page ld.so(8)

That won't catch statically-linked binaries, but neither will
rebuilding glibc, unless you relink all of the static binaries.

As for how to write an ELF interposer, see the following article.
It's about Solaris, but applies equally to Linux -- just be aware
that gcc requires different args that Sun CC for producing
shared objects:

   http://developers.sun.com/solaris/articles/lib_interposers.html

The Program-Library-HOWTO details how to create a shared library
on Linux using gcc:

   
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Program-Library-HOWTO.html#AEN95


Regards,

        Bill Rugolsky


_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to