This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix ld/418


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]