This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to list all symbolic names for references to global varibables and functions with objdump (for MIPS arch)?


Hi All,

I use objdump to disassemble the ELF files. It can list symbolic names
for functions if referenced in branch and link instructions. But it
can show  symbolic names neither for global variables nor for
functions if used as points in the context of assignments, argument
passing and etc. As shown as below.
  ...
  70016c:	24050002 	li	a1,2
  700170:	0c1c002a 	jal	7000a8 <RegBitRead>
  700174:	24060002 	li	a2,2
  ...
  0070a064 l     O .bss	00000004 is_video
  ...
  703050:	3c020071 	lui	v0,0x71
  703054:	8c42a064 	lw	v0,-24476(v0) <-- It is a reference to the
global variable is_video in fact,

    but objdump doesn't show these messages
So, can I make objdump show all reference messages for functions and
global variables?

Best Regards
---------------
PRC
Dec 2, 2008


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]