This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ppc32/objdump : retrieving the symbol's name behind the GOT offset ?
- From: Cary Coutant <ccoutant at google dot com>
- To: "yon ar c'hall" <yon dot ar dot chall at gmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 10 Jan 2014 15:08:53 -0800
- Subject: Re: ppc32/objdump : retrieving the symbol's name behind the GOT offset ?
- Authentication-results: sourceware.org; auth=none
- References: <CAOJvutOWO-bzLnZQiCM9_xFjP++DKMCZ-1pEZHp_By_jyEmaNQ at mail dot gmail dot com>
> When it's related to the access to an object via the GOT,
> objdump/ppc32 produces such disassembled code :
>
> lwz r9,-32764(r30)
>
> Is there any mean (with objdump, or any other tool) for quickly
> retrieving the corresponding real symbol's name of the targeted object
> (local or global) ?
You'll need to scan the dynamic relocations for the relocation that
applies to that particular GOT entry. That relocation will give you
the symbol table index (in .dynsym) of the corresponding symbol.
-cary