Now I'm developing program like readelf
using pyelftools
libraries.
I want to print the table like below.
In here, Offset
field is stderr@GOT
address.
jiwon@jiwon$ readelf -a --wide libstdbuf.so
...
Relocation section '.rel.dyn' at offset 0x454 contains 12 entries:
Offset Info Type Sym. Value Symbol's Name
00001c50 00000206 R_386_GLOB_DAT 00000000 stderr@GLIBC_2.0
...
Assume that I have only GOT address(00001c50
) of unknown symbol.
My situation I want to make function like get_symname_by_GOTaddress
for resolution from 00001c50
to stderr@GLIBC_2.0
.
Question : However, I could not find any linkage information between GOT address
and symbol name
in binary. How can I get it?