dwfl_module_addrinfo and @plt entries
Milian Wolff
mail@milianw.de
Wed Jan 4 00:41:00 GMT 2017
Hello,
how do I get symbol information for @plt entries? Consider the following case:
~~~~~~~~~~~~~~~
$ objdump -j .plt -S lab_mandelbrot | head
lab_mandelbrot: file format elf64-x86-64
Disassembly of section .plt:
0000000000002aa0 <_ZN7QWidget4showEv@plt-0x10>:
2aa0: ff 35 62 35 20 00 pushq 0x203562(%rip) # 206008
<_GLOBAL_OFFSET_TABLE_+0x8>
2aa6: ff 25 64 35 20 00 jmpq *0x203564(%rip) # 206010
<_GLOBAL_OFFSET_TABLE_+0x10>
2aac: 0f 1f 40 00 nopl 0x0(%rax)
~~~~~~~~~~~~~~~
Now I report dwfl the above binary at address 0x56360eaff000. Then I try to
get information about the address 0x56360EB01AA0 (i.e. at offset 0x2aa0,
corresponding to the @plt entry above). dwfl_module_addrinfo returns a NULL
string, and offset equals the input address.
So, how do I use the dwfl API to also get sym names for @plt entries like in
the case above?
Thanks
--
Milian Wolff
mail@milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/elfutils-devel/attachments/20170104/0b18ad65/attachment.sig>
More information about the Elfutils-devel
mailing list