This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: IA64 linker sets DT_TEXTREL incorrectly
- From: Jim Wilson <wilson at specifixinc dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com, cary at cup dot hp dot com
- Date: 25 Feb 2004 18:52:57 -0800
- Subject: Re: PATCH: IA64 linker sets DT_TEXTREL incorrectly
- References: <20040226002329.GA6398@lucon.org>
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