Elf: Dump symbol value in BSS, DATA or RODATA?
Posted
by
noloader
on Stack Overflow
See other posts from Stack Overflow
or by noloader
Published on 2013-06-25T23:23:47Z
Indexed on
2013/06/26
4:21 UTC
Read the original article
Hit count: 277
I have a ELF shared object with a symbol initialized to a value. I want to know what the value of a symbol is.
I know objdump -T
will give me the symbol's address and length but I need the value:
$ arm-linux-androideabi-objdump -T libcrypto.so.1.0.0 | grep -i FIPS_signature
001a9668 g DO .bss 00000014 FIPS_signature
However, hexdump
knows nothing about ELF sections, offsets and virtual addresses, so I can't use the information:
$ hexdump -v -x -n 0x14 -s 0x001a9668 libcrypto.so.1.0.0
$
How do I dump the value of the symbol?
Jeff
© Stack Overflow or respective owner