This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/3191: Linker failed to handle DW_FORM_ref_addr properly
- From: Jim Wilson <wilson at specifix dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 20 Sep 2006 11:48:10 -0700
- Subject: Re: PATCH: PR ld/3191: Linker failed to handle DW_FORM_ref_addr properly
- References: <20060920043701.GA24160@lucon.org> <20060920052010.GA22345@lucon.org>
On Tue, 2006-09-19 at 22:20 -0700, H. J. Lu wrote:
> We should only do it for DWARF3. But gcc generates DWARF3 info in
> a DWARF2 file.
In DWARF2, the offset size is always 4, so there is no conflict here.
This code will work fine for both DWARF2 and DWARF3.
I do see a problem though, which is that I don't understand where the
64-bit DWARF3 is coming from. Gcc does not emit 64-bit DWARF for any
target except Irix5/6, and the bug report does not say anything about
using a custom modified gcc. I looked at the client.o object file in
the bug report, and there is no 64-bit DWARF there. (The pointers are
64-bit, but the debug info offsets are not.) I don't understand how
this patch can help. There is something that hasn't been explained here
yet.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com