This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix ld/418
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com, mendell at ca dot ibm dot com
- Date: Thu, 30 Sep 2004 10:51:25 -0400
- Subject: Re: Fix ld/418
- References: <20040930143657.GA28227@bubble.modra.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Oct 01, 2004 at 12:06:57AM +0930, Alan Modra wrote:
> Hi Jakub,
> I'd like your opinion on the following patch to fix
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=418. xlc apparently
> uses a LSDA that isn't a pointer, thus making it pc-relative doesn't
> really make much sense. The changelog below should make it clear
> what I'm doing.
>
> * elf-bfd.h (struct eh_cie_fde): Add need_relative and
> need_lsda_relative.
> * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
> need_relative or need_lsda_relative if we are processing an
> offset for a reloc on a FDE initial loc or LSDA field
> respectively.
> (_bfd_elf_write_section_eh_frame): Test need_relative and
> need_lsda_relative in place of corresponding make_* field
> when deciding to use pc-relative encodings.
Looks good.
Jakub