0%

LD_DEBUG说明

在排查动态库符号查找失败、符号覆盖时特别有用。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 LD_DEBUG=help ./program1
Valid options for the LD_DEBUG environment variable are:

libs display library search paths
reloc display relocation processing
files display progress for input file
symbols display symbol table processing
bindings display information about symbol binding
versions display version dependencies
scopes display scope information
all all previous options combined
statistics display relocation statistics
unused determined unused DSOs
help display this help message and exit

To direct the debugging output into a file instead of standard output
a filename can be specified using the LD_DEBUG_OUTPUT environment variable.