Elf: Dump symbol value in BSS, DATA or RODATA?
- by noloader
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