From: Milian Wolff <mail@milianw.de>
To: elfutils-devel@sourceware.org
Subject: dwfl_module_addrinfo and @plt entries
Date: Wed, 04 Jan 2017 00:41:00 -0000 [thread overview]
Message-ID: <4389913.7LHyNoxDn3@agathebauer> (raw)
[-- 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 --]
next reply other threads:[~2017-01-04 0:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 0:41 Milian Wolff [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4389913.7LHyNoxDn3@agathebauer \
--to=mail@milianw.de \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).