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: overlapping ELF symbols and disassembly output


On Sat, Oct 27, 2007 at 04:30:05PM -0400, Mike Frysinger wrote:
> objdump on this shows proper disassembly from the start of "foo" up to the 
> start of "moo", and then shows that the "moo" symbol is data, but after the 
> end of "moo" to the end of "foo", the information is continued to be 
> interpreted as data rather than disassembled as object code.  i imagine this 
> is not normal, but can it be expected to work ? :)

Not really.  Most tools don't support overlapping symbols.  GDB "sort
of" does.

ARM solved this problem with a separate set of mapping symbols; you
may want to look at that.  Other tools have solved it with annotations
in DWARF .debug_line data.

-- 
Daniel Jacobowitz
CodeSourcery


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