This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix DT_TEXTREL handling for MIPS VxWorks
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sourceware dot org, richard at codesourcery dot com
- Date: Thu, 12 Apr 2007 19:14:43 +0100
- Subject: Re: Fix DT_TEXTREL handling for MIPS VxWorks
- References: <87r6qptu32.fsf@firetop.home>
Richard Sandiford wrote:
> Last year's MIPS DT_TEXTREL fix means that VxWorks executables with
> text relocations against __GOTT_BASE__ or __GOTT_INDEX__ (and nothing
> else) no longer get a DT_TEXTREL tag. This patch adds the same sort
> of DT_TEXTREL checks to the code that handles these relocations.
>
> Tested on mips-wrs-vxworks. OK to install?
>
> Richard
>
>
> bfd/
> * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
> when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
> in a read-only section.
> (_bfd_mips_elf_check_relocs): Likewise.
>
> ld/testsuite/
> * ld-mips-elf/vxworks1-lib.td: New test.
> * ld-mips-elf/mips-elf.exp: Run it.
Ok.
Thiemo