В чем разница между objdump -h
, который показывает
$ objdump -h ./foo | grep rela
8 .rela.dyn 00000060 0000000000409ae0 0000000000409ae0 00009ae0 2**3
9 .rela.plt 00000d50 0000000000409b40 0000000000409b40 00009b40 2**3
и readelf -S
, который показывает
$ readelf -S ./foo | grep rela
[ 9] .rela.dyn RELA 0000000000409ae0 00009ae0
[10] .rela.plt RELA 0000000000409b40 00009b40
[12] .rela.init RELA 0000000000000000 003c7da0
[16] .rela.text RELA 0000000000000000 003c7dd0
[19] .rela.rodata RELA 0000000000000000 003ffb88
[22] .rela.eh_frame RELA 0000000000000000 00407a60
[24] .rela.init_array RELA 0000000000000000 0040e9a8
[26] .rela.fini_array RELA 0000000000000000 0040e9c0
[32] .rela.data RELA 0000000000000000 0040e9d8
[37] .rela.debug_arang RELA 0000000000000000 0041a408
[39] .rela.debug_info RELA 0000000000000000 0041ba10
[42] .rela.debug_line RELA 0000000000000000 00720468
[45] .rela.debug_loc RELA 0000000000000000 00720f60
[47] .rela.debug_range RELA 0000000000000000 0073a580
? Согласно обычаям, я вижу
objdump
-h, --[section-]headers Display the contents of the section headers
readelf
-S --section-headers Display the sections' header
Я не понимаю разницу.