This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

dwfl_module_addrinfo and @plt entries


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]