Dear group,
I need to load dependent libraries for an application which is in ELF format.please let me know how to parse the ELF file to find dependent libraries.
thnaks in advance,
Ravinder
Dear group,
I need to load dependent libraries for an application which is in ELF format.please let me know how to parse the ELF file to find dependent libraries.
thnaks in advance,
Ravinder
If I got it correct, "ldd" is what you need, example :
thanks for your replay,
yes you are right the the ldd tool lists the dependent shared libraries that the executable requires, along with their paths if found.
But i want to write an application which shoud do the same functionality.
Please suggest me how to interprete the ELF file to collect the information.
i need exactly as LDD tool.
I'm not sure for the programming part, but you can always look at the source code for this tool and start writing your own. Another similar binary which does almost the same is "fdebuginfo" :