[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Hooks for Dynamic loader



I want during run time , when new module is about to be loaded, to be
notified.
something like every time the program calls dlopen (or other dynamic loader
funcs) I will be notified with the parameters of that call (the lib name)


-----Original Message-----
From: Guy Zadicario [mailto:guyz@sgi.com]
Sent: Thursday, May 25, 2000 5:57 PM
To: 'Mevorach, Assaf'
Subject: RE: Hooks for Dynamic loader
Importance: Low


if you are building your own shared library and want 
to be signaled when it is loaded to a program you can
use the _init symbol (see dlopen(3) ), if you just want
to be signaled for each library that ld.so loads, I doubt
if it possible because before ld.so completes his work
your executable is not yet ready to run ( the main function will
be called after all libraries already loaded by ld.so, the only
code from your program that executes before main is initialization
of global variables, but that happens also after all libraries were loaded).


-----Original Message-----
From: Mevorach, Assaf [mailto:assaf.mevorach@intel.com]
Sent: Thursday, May 25, 2000 12:42 PM
To: 'linux-il@linux.org.il'
Subject: Hooks for Dynamic loader


Hello
I am trying to catch the call to dynamic linked libraries on run time, and I
am looking for a hook function or signal that the dl.so
sends (if it does) when it is called to load a library on run time
if anyone knows a hint or a link to information related I will appreciate
it.
Thank you
Assaf.


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il