This is the mail archive of the binutils@sourceware.org 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 DT_TEXTREL handling for MIPS VxWorks


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


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