Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of DYLD_PRINT_LIBRARIES on linux?

Tags:

linux

linker

ld

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?

like image 957
Stefano Borini Avatar asked Apr 01 '14 11:04

Stefano Borini


1 Answers

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.

like image 170
keltar Avatar answered Nov 01 '22 13:11

keltar