This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix DW_CFA_set_loc handling
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 26 Sep 2006 06:57:42 -0700
- Subject: Re: [PATCH] Fix DW_CFA_set_loc handling
- References: <20060926123840.GA4556@sunsite.mff.cuni.cz>
On Tue, Sep 26, 2006 at 02:38:40PM +0200, Jakub Jelinek wrote:
> Hi!
>
> Recent http://gcc.gnu.org/PR22313 change (including gcc 4.1 branch) started
> (unnecessarily) using DW_CFA_set_loc at the start of all FDEs, but
> unfortunately linker .eh_frame optimizations didn't handle that well.
> If FDE encoding is pc relative or linker is changing it from absptr
> to pc relative, we need to adjust the DW_CFA_set_loc operand accordingly.
>
> Tested with make check on x86_64-linux, visual inspection of x86_64
> readelf -wf libc.so.6 (this was seriously broken before) and visual
> inspection of a hacked up test for absptr -> pcrel conversion.
>
Is that possible to include a testcase, even just for one arch/format?
H.J.