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?
-- Tauno Voipio tauno voipio (at) iki fi
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?
-- Tauno Voipio tauno voipio (at) iki fi
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
-- Software patents are the software project equivalent of land mines: Each design decision carries a risk of stepping on a patent, which can destroy
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
-- Kernel panic: I have no root and I want to scream (Linux Kernel Error Message)
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.