public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* dwfl_module_addrinfo and @plt entries
@ 2017-01-04  0:41 Milian Wolff
  2017-01-04 13:42 ` Mark Wielaard
  0 siblings, 1 reply; 8+ messages in thread
From: Milian Wolff @ 2017-01-04  0:41 UTC (permalink / raw)
  To: elfutils-devel

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-28 14:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04  0:41 dwfl_module_addrinfo and @plt entries Milian Wolff
2017-01-04 13:42 ` Mark Wielaard
2017-01-06 10:28   ` Milian Wolff
2017-01-06 19:17     ` Mark Wielaard
2017-07-05 13:34       ` Milian Wolff
2017-07-07 11:03         ` Mark Wielaard
2017-07-10 11:06           ` Milian Wolff
2017-08-28 14:28             ` Milian Wolff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).