This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: MIPS textrel fix
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sourceware dot org
- Date: Thu, 18 May 2006 17:51:21 -0400
- Subject: Re: MIPS textrel fix
- References: <20060518213149.GA14720@nevyn.them.org>
On Thu, May 18, 2006 at 05:31:49PM -0400, Daniel Jacobowitz wrote:
> 2006-05-18 Daniel Jacobowitz <dan@codesourcery.com>
>
> * elflink.c (_bfd_elf_add_dynamic_entry): Remove DT_TEXTREL
> check.
> (bfd_elf_final_link): Add a late DT_TEXTREL check.
> * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): Define.
> (mips_elf_create_dynamic_relocation): Set DF_TEXTREL.
> (_bfd_mips_elf_check_relocs): Delete MIPS_READONLY_SECTION.
> Use MIPS_ELF_READONLY_SECTION.
> (_bfd_mips_elf_size_dynamic_sections): Clear DF_TEXTREL after
> creating DT_TEXTREL.
> (_bfd_mips_elf_finish_dynamic_sections): Clear textrel markers
> if no text relocations were generated.
Oh, there's a textrel-1.d part of this patch too; the test bitrotted
while it was failing. That part is obvious.
--
Daniel Jacobowitz
CodeSourcery