on OSX, the DYLD_PRINT_LIBRARIES environment variable forces the dynamic linker to print out, at runtime, the external libraries as they are accessed. Is there an equivalent one on linux?
LD_TRACE_LOADED_OBJECTS=1 ./binary_name
Or
ldd ./binary_name
Or
LD_DEBUG=libs ./binary_name
Latest example traces runtime, first two - reading ELF header, without program execution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With