This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch gas/ld]: Handle cfi generated segments for link-once text segments
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: Binutils <binutils at sourceware dot org>, Richard Henderson <rth at redhat dot com>
- Date: Mon, 28 Feb 2011 06:14:34 -0800
- Subject: Re: [patch gas/ld]: Handle cfi generated segments for link-once text segments
- References: <AANLkTi=qPXkPn3gfoGNv2EQHEYK7rvVPEKiNqSASrGgr@mail.gmail.com>
On Mon, Feb 28, 2011 at 2:08 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hello,
>
> this patch does some optimization for cfi and eh_frame/debug for use
> in link-once segments.
>
> ChangeLog gas/
>
> 2011-02-28 ?Kai Tietz
>
> ? ? ? ?* dw2gencfi.c (dwcfi_seg_list): New struct.
> ? ? ? ?(dwcfi_hash): New static hash variable.
> ? ? ? ?(get_debugseg_name): New.
> ? ? ? ?(alloc_debugseg_item): New.
> ? ? ? ?(make_debug_seg): New.
> ? ? ? ?(dwcfi_hash_insert): New.
> ? ? ? ?(dwcfi_hash_find): New.
> ? ? ? ?(dwcfi_hash_find_or_make): New.
> ? ? ? ?(fde_entry): New cseg member.
> ? ? ? ?(alloc_fde_entry): Initialize cseg member.
> ? ? ? ?(dot_cfi_sections): Compare for beginning of
> ? ? ? ?section names via strncmp.
> ? ? ? ?(get_cfi_seg): New.
> ? ? ? ?(cfi_finish): Treat link-once sections.
> ? ? ? ?* ehopt.c (get_cie_info): Use strncmp for
> ? ? ? ?section name matching.
> ? ? ? ?(heck_eh_frame): Likewise.
>
> ChangeLog ld/
>
> 2011-02-28 ?Kai Tietz
>
> ? ? ? ?* scripttempl/alphavms.sc: Handle .eh_frame($|.)* sections.
> ? ? ? ?* scripttempl/armbpabi.sc: Likewise.
> ? ? ? ?* scripttempl/avr.sc: Likewise.
> ? ? ? ?* scripttempl/crisaout.sc: Likewise.
> ? ? ? ?* scripttempl/elf.sc: Likewise.
> ? ? ? ?* scripttempl/elf32cr16.sc: Likewise.
> ? ? ? ?* scripttempl/elf32crx.sc: Likewise.
> ? ? ? ?* scripttempl/elf32msp430.sc: Likewise.
> ? ? ? ?* scripttempl/elf32msp430_3.sc: Likewise.
> ? ? ? ?* scripttempl/elf32sh-symbian.sc: Likewise.
> ? ? ? ?* scripttempl/elf64hppa.sc: Likewise.
> ? ? ? ?* scripttempl/elf_chaos.sc: Likewise.
> ? ? ? ?* scripttempl/elfd10v.sc: Likewise.
> ? ? ? ?* scripttempl/elfd30v.sc: Likewise.
> ? ? ? ?* scripttempl/elfi370.sc: Likewise.
> ? ? ? ?* scripttempl/elfm68hc11.sc: Likewise.
> ? ? ? ?* scripttempl/elfm68hc12.sc: Likewise.
> ? ? ? ?* scripttempl/elfmicroblaze.sc: Likewise.
> ? ? ? ?* scripttempl/elfxtensa.sc: Likewise.
> ? ? ? ?* scripttempl/epocpe.sc: Likewise.
> ? ? ? ?* scripttempl/i386beos.sc: Likewise.
> ? ? ? ?* scripttempl/i386go32.sc: Likewise.
> ? ? ? ?* scripttempl/ip2k.sc: Likewise.
> ? ? ? ?* scripttempl/iq2000.sc: Likewise.
> ? ? ? ?* scripttempl/mcorepe.sc: Likewise.
> ? ? ? ?* scripttempl/mep.sc: Likewise.
> ? ? ? ?* scripttempl/mmo.sc: Likewise.
> ? ? ? ?* scripttempl/pe.sc: Likewise.
> ? ? ? ?* scripttempl/pep.sc: Likewise.
> ? ? ? ?* scripttempl/v850.sc: Likewise.
> ? ? ? ?* scripttempl/xstormy16.sc: Likewise.
>
> Tested for x86_64-w64-mingw32, i686-pc-cygwin, and
> x86_64-pc-linux-gnu. Ok for apply?
>
> Regards,
> Kai
>
Can you add some testcases?
--
H.J.