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]

Re: Handling symbols's display in objdump


Hi Ramana,

It seems the objdump cannot distinguish between code space and data
space of a harvward architecture. The 'print_address_func' interface
(actually invokes objdump_print_address) is trying to just match the
symbol's value but not the symbol class i.e. OBJECT or FUNCTION. Hence
I am seeing text symbols' name being displayed for data symbols' name
in the disassembly output.

How should I handle symbols' display

You need to modify the objdump.c:find_symbol_for_address() function so that it will include a test to match the attributes of the section (CODE or DATA) with the type of the symbol found (OBJECT or FUNCTION).


Cheers
  Nick


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