This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: overlapping ELF symbols and disassembly output
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 28 Oct 2007 10:11:31 -0400
- Subject: Re: overlapping ELF symbols and disassembly output
- References: <200710271630.05911.vapier@gentoo.org>
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