6 ms·
Is there an alternative to list the dependencies, that doesn't have this risk?
by funcDropShadow 3y ago
Is there an alternative to list the dependencies, that doesn't have this risk?
- ferringb 3y agolook into `readelf` and `objdump -p`; those tools work via reading data rather than (effectively) executing the target. That 'execution' approach is why ldd is problematic; libraries can have init/finalizers (__init__ and __fini__ iirc).
- usr1106 3y agoSome discussion is at https://news.ycombinator.com/item?id=36839800 https://news.ycombinator.com/item?id=36839800 Sorry, I don't remember all the details.