This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: dwarf2 and objdump -S --adjust-vma
Hi Nick,
On Mon, May 28, 2001 at 12:04:31PM +0100, Nick Clifton wrote:
> Hi Karsten,
>
> > while debuging some x86-64 kernel problem I found a bug in
> > dwarf and objdump -S --adjust-vma handling.
>
> Thanks for submitting this bug report. I have applied the patch below
> to fix this problem.
>
> Cheers
> Nick
>
> 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
>
> * objdump.c (disassemble_bytes): Remove section VMA adjustment
> when computing the address of the line to show.
>
It seems to be the right solution, but:
I'm afraid that this break the stabs (and maybe other) cases, seems here is
a workaround on a other place.
While looking at the problem by myself, I found that the
_bfd_stab_section_find_nearest_line correct the offset by itself.
Since I don't know enought about dwarf, stabs bfd, I didn't find
a solution which don't break things.
--
Karsten Keil
SuSE Labs
ISDN development