문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top