Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LD_PRELOAD

3 views
Skip to first unread message

adirtymindisajoyforever

unread,
Oct 21, 2009, 8:20:37 AM10/21/09
to
Hi,

this is the best match of newsgroups I could find, correct me if I am
wring.

my system is:
# uname -a
OSF1 mymachine V5.1 2650 alpha

Is there any (kernel) configureation needed in order to get LD_PRELOAD
to work?
Although I can't find a way to trace the loading of libs, a printf I
inserted does not
give any output and I don't get the result of what the inserted lib is
supposed to do either.

What makes me more suspicious is that specifying a non existing
library doesn' give
any error.

Thanks for any answer or -> to it.

Chris Adams

unread,
Oct 21, 2009, 3:52:58 PM10/21/09
to
Once upon a time, adirtymindisajoyforever <getrido...@yahoo.com> said:
>Is there any (kernel) configureation needed in order to get LD_PRELOAD
>to work?

The Tru64 dynamic loader doesn't recognize LD_PRELOAD. It does
recognize _RLD_LIST, but it works a little differently than LD_PRELOAD.
To pre-load a dynamic lib in /path/foo.so, you set _RLD_LIST to
"/path/foo.so:default".

See "man loader" for more information.
--
Chris Adams <cma...@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

adirtymindisajoyforever

unread,
Oct 22, 2009, 6:39:48 AM10/22/09
to
On 21 okt, 21:52, cmad...@hiwaay.net (Chris Adams) wrote:
> Once upon a time, adirtymindisajoyforever  <getridofthes...@yahoo.com> said:

hi,

Thanks for the answer, this problem is solved. the next one is that mu
shared lib contains an
init function that should be called upon program execution start. I
couldn't find anything
in the man page. Tried __istart to no success.

>
> >Is there any (kernel) configureation needed in order to get LD_PRELOAD
> >to work?
>
> The Tru64 dynamic loader doesn't recognize LD_PRELOAD.  It does
> recognize _RLD_LIST, but it works a little differently than LD_PRELOAD.
> To pre-load a dynamic lib in /path/foo.so, you set _RLD_LIST to
> "/path/foo.so:default".
>
> See "man loader" for more information.
> --

> Chris Adams <cmad...@hiwaay.net>

Chris Adams

unread,
Oct 22, 2009, 9:46:31 PM10/22/09
to
Once upon a time, adirtymindisajoyforever <getrido...@yahoo.com> said:
>Thanks for the answer, this problem is solved. the next one is that mu
>shared lib contains an
>init function that should be called upon program execution start. I
>couldn't find anything
>in the man page. Tried __istart to no success.

I'm not aware of any way to do that on Tru64.
--
Chris Adams <cma...@hiwaay.net>

0 new messages