From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46543 invoked by alias); 4 Jan 2017 00:41:52 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 46528 invoked by uid 89); 4 Jan 2017 00:41:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*F:U*mail, dwfl, Hx-languages-length:945 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: dd17628.kasserver.com From: Milian Wolff To: elfutils-devel@sourceware.org Subject: dwfl_module_addrinfo and @plt entries Date: Wed, 04 Jan 2017 00:41:00 -0000 Message-ID: <4389913.7LHyNoxDn3@agathebauer> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2853754.CVaYj3I6CS"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-SW-Source: 2017-q1/txt/msg00002.txt.bz2 --nextPart2853754.CVaYj3I6CS Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Content-length: 990 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 --nextPart2853754.CVaYj3I6CS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit Content-length: 195 -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQ9hWiGkJfGXJj40nYMDrISzR0TkwUCWGxEtgAKCRAMDrISzR0T k1YuAJ9hPwMKweQRX7jJbld0KoxRDd4S6wCfafk0h8BKHXvwmD68ewJkjZyTj7U= =Fwub -----END PGP SIGNATURE----- --nextPart2853754.CVaYj3I6CS--