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: PATCH: IA64 linker sets DT_TEXTREL incorrectly


On Wed, 2004-02-25 at 16:23, H. J. Lu wrote:
> 	* elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
> 	field to track if a relocation is against readonly section.
> 	(count_dyn_reloc): Take a new argument for rent->reltext.
> 	(elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
> 	(get_reloc_section): Don't set ia64_info->reltext here.
> 	(allocate_dynrel_entries): Set ia64_info->reltext here.

This looks OK to me.

I assume the relocs are for relaxing stuff in the text section, like brl
instructions.  This would explain why we didn't have them before, since
some of this relaxation support is new, and it explains why the relocs
are being resolved locally.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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