Fix ld/418

Jakub Jelinek jakub@redhat.com
Thu Sep 30 14:51:00 GMT 2004


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



More information about the Binutils mailing list