This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Can objdump show friendly symbolic function name?
- From: Michael Hennebry <hennebry at web dot cs dot ndsu dot nodak dot edu>
- To: Pan ruochen <panruochen at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 14 Jul 2010 21:32:24 -0500 (CDT)
- Subject: Re: Can objdump show friendly symbolic function name?
- References: <AANLkTinvyrd16hmrEyRyR2UfO7bW_eoO8KaTUGZZZoJ0@mail.gmail.com>
On Thu, 15 Jul 2010, Pan ruochen wrote:
I am developing with mips-linux toolchain. I always need to do some
analysis on the disassembly code.
But objdump displays as following:
0001c370 <semget>:
1c370: 3c1c0005 lui gp,0x5
1c374: 279ce080 addiu gp,gp,-8064
1c378: 0399e021 addu gp,gp,t9
1c3a4: 00802821 move a1,a0
1c3a8: afa00010 sw zero,16(sp)
1c3ac: afa00014 sw zero,20(sp)
1c3b0: 0320f809 jalr t9
It is really hard to read disassembly code like that since I can't see which
function is called from `jalr t9'.
Is there some way to inform objdump to display more friendly symbolic name
as following?
I think that -S will do roughly what you want.
--
Michael hennebry@web.cs.ndsu.NoDak.edu
"Pessimist: The glass is half empty.
Optimist: The glass is half full.
Engineer: The glass is twice as big as it needs to be."