how to add a new glibc symbol ?
Roger Oberholtzer
roger
Mon May 17 11:56:25 PDT 2004
On Wed, 3 Dec 2003 09:23:42 -0500 (EST)
Net Llama! <netllama at linux-sxs.org> wrote:
> On Wed, 3 Dec 2003, Roger Oberholtzer wrote:
> > The Linux program loader will load a DSO (libxx.so) specified in an
> > environment variable when an application starts. This would allow you to
> > make a dummy library to provide the missing label. I always thought this
> > was both a neat and a dangerous feature. I believe it it the very first
> > thing loaded, so it should be available to libc.
> >
> > Let me know if you are interested and I will relocate the name of the
> > environment variable. It was something like LD_PRELOAD=libxyx.so.
>
> Yes, I'm very interested in this. I think i ran across an LD_PRELOAD
> variable, but didn't quite understand the gist of it. One problem though,
> is that I have ctype_b.c, so how would I turn that into a shared library
> (so) for use with the LD_PRELOAD var?
I posted a link with examples earlier today. They make it more complicated
bu intercepting the time() function. You need not be so fancy to just make a
function that satisfies the loader. It included the command lines to compile
and all. Did you see that link?
--
+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer ? E-mail: roger at opq.se ?
? OPQ Systems AB ? WWW: http://www.opq.se/ ?
? Erik Dahlbergsgatan 41-43 ? Phone: Int + 46 8 314223 ?
? 115 34 Stockholm ? Mobile: Int + 46 733 621657 ?
? Sweden ? Fax: Int + 46 8 302602 ?
+????????????????????????????+???????????????????????????????+
More information about the Linux-users
mailing list