How Do i Inject a shared library or DLL into a running process in Linux
i,e into the process address space ?Inject a shared library or DLL into a running process in Linux
I am using Mandriva 10.1 Linux ,
please help me out
How Do i Inject a shared library or DLL into a running process in Linux
i,e into the process address space ?Inject a shared library or DLL into a running process in Linux
I am using Mandriva 10.1 Linux ,
please help me out
If you need to post in multiple groups, please crosspost instead of posting to each group separately.
What is the need for injecting the shared libraries without the process doing it by itself?
Once again: WHY?
Which is the problem you think to solve with this kind of operation?
Are you attempting to change a shared library which the process is already using?
I assume that you are referring to dynamic loading. Take a look at the dlopen and dlsym functions.
Paul
I dont know of any possibility of doing something like this during runtime. I think this should be hardly necessary anyway.
Have a look at LD_PRELOAD, if you intend to change the behaviour of standrad library functions, this should be sufficient.
If not you need to post further details of what you are trying to do.
Sven
This is how I understood the Question of the OP as well.
Something like this can be achieved using LD_PRELOAD in conjunction with an external mechanism (shares memory comes to mind) to change the behaviour of a given funktion.
Sven
Have something to add? Share your thoughts — no account required.
Ask the community — no account required