This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix 3 bugs in --eh-frame-hdr patch
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 17 Dec 2001 22:22:31 -0800
- Subject: Re: [PATCH] Fix 3 bugs in --eh-frame-hdr patch
- References: <20011217152001.I542@sunsite.ms.mff.cuni.cz>
On Mon, Dec 17, 2001 at 03:20:01PM +0100, Jakub Jelinek wrote:
> * elf-eh-frame.c (struct cie): Add make_lsda_relative.
> (struct eh_cie_fde): Add lsda_encoding, lsda_offset,
> make_lsda_relative.
> (read_value, write_value): New.
> (_bfd_elf_discard_section_eh_frame): Inicialize
> lsda_encoding, lsda_offset and make_lsda_relative.
> (_bfd_elf_eh_frame_section_offset): If make_lsda_relative,
> request no dynamic reloc for LSDA field of FDE.
> (_bfd_elf_write_section_eh_frame): Handle make_lsda_relative.
> If a non-DW_EH_PE_absptr value is 0, don't adjust it by base
> or pcrel. Fix address computation for DW_EH_PE_pcrel relocs.
> Update LSDA field if LSDA encoding is DW_EH_PE_pcrel, because
> . might have changed due to deleted FDE or CIEs.
Ok.
r~