3 ms·
I believe I saw a simple shell script based on nm or binutils which could do a safe ldd on any executable, including executables for different platforms. Updat
by thriftwy 3y ago
I believe I saw a simple shell script based on nm or binutils which could do a safe ldd on any executable, including executables for different platforms.
Update: Here seems to be one example: https://gist.github.com/jerome-pouiller/c403786c1394f53f44a3b61214489e6f https://gist.github.com/jerome-pouiller/c403786c1394f53f44a3...
- nwellnhof 3y agoThis seems to be based on readelf.
- yakubin 3y agoIt's readelf, but it will only list libs which are declared in the ELF of the executable. It won't list libraries loaded at startup with dlopen(3), unlike ldd. I'm also not sure, if this script will recurse, but I suspect not. ldd will print libraries loaded recursively.
- Joker_vD 3y ago> It won't list libraries loaded at startup with dlopen(3) Well, that'd require actually executing the startup code.