[PATCH] Support .cfi_personality and .cfi_lsda directives
Khem Raj
kraj@mvista.com
Fri Nov 10 19:43:00 GMT 2006
Jakub Jelinek said the following on 11/02/2006 10:30 AM:
> On Thu, Nov 02, 2006 at 09:20:39AM -0800, Richard Henderson wrote:
>
>> On Thu, Nov 02, 2006 at 05:28:13PM +0100, Jakub Jelinek wrote:
>>
>>> http://sources.redhat.com/ml/binutils/2006-10/msg00378.html
>>>
>> What's the purpose of the unused_cfi_data chain?
>> Since you're zeroing after reusing one, why don't
>> you just free them?
>>
>
> Here is a patch which just uses xcalloc/free instead.
> Ok?
>
> 2006-11-02 Jakub Jelinek <jakub@redhat.com>
>
> * subsegs.h (struct frchain): Add frch_cfi_data field.
> * dw2gencfi.c: Include subsegs.h.
> (cur_fde_data, last_address, cur_cfa_offset, cfa_save_stack): Removed.
> (struct frch_cfi_data): New type.
> (unused_cfi_data): New variable.
> (alloc_fde_entry): Move cur_fde_data, last_address, cur_cfa_offset
> and cfa_save_stack static vars into a structure pointed from
> each frchain.
> (alloc_cfi_insn_data, cfi_new_fde, cfi_end_fde, cfi_set_return_column,
> cfi_add_advance_loc, cfi_add_CFA_def_cfa, cfi_add_CFA_def_cfa_offset,
> cfi_add_CFA_remember_state, cfi_add_CFA_restore_state, dot_cfi,
> dot_cfi_escape, dot_cfi_startproc, dot_cfi_endproc, cfi_finish):
> Likewise.
>
> * gas/cfi/cfi-common-5.d: New test.
> * gas/cfi/cfi-common-5.s: New.
> * gas/cfi/cfi.exp: Add cfi-common-5 test.
>
Hi Jakub
I am getting assembler errors while compiling attached testcase.
(reduced from glibc)
xx.s: Assembler messages:
xx.s:6: Error: previous CFI entry not closed (missing .cfi_endproc)
Segmentation fault
Thanks
--
Khem Raj
MontaVista Software Inc.
kraj@mvista.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xx.s
URL: <https://sourceware.org/pipermail/binutils/attachments/20061110/21c304b9/attachment.ksh>
More information about the Binutils
mailing list