How to find the path of the DLL which is under execution in linux?
How to find the path of the DLL which is under execution in linux?
In windows,it can be done by GetModuleFileName() function.
Tried with /proc/self/exe,but it is returning the path of the calling
process and not the DLL which is called by calling process.
For eg: My process resides in /opt/myproc.exe. This myproc.exe calls DLL
which resides in /root/Desktop/myprocdl.dll . I need the path of my
DLL(which in this case if /root/Desktop/myprocdl.dll).
No comments:
Post a Comment