Stefano Borini
Stefano Borini

Reputation: 143795

Equivalent of DYLD_PRINT_LIBRARIES on linux?

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?

Upvotes: 8

Views: 2054

Answers (1)

keltar
keltar

Reputation: 18399

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.

Upvotes: 10

Related Questions