From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8636 invoked by alias); 12 Apr 2007 18:14:15 -0000 Received: (qmail 8628 invoked by uid 22791); 12 Apr 2007 18:14:15 -0000 X-Spam-Check-By: sourceware.org Received: from phoenix.bawue.net (HELO mail.bawue.net) (193.7.176.60) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Apr 2007 19:14:13 +0100 Received: from lagash (intrt.mips-uk.com [194.74.144.130]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bawue.net (Postfix) with ESMTP id 3DA25B81FB; Thu, 12 Apr 2007 20:14:10 +0200 (CEST) Received: from ths by lagash with local (Exim 4.63) (envelope-from ) id 1Hc3oh-0002Or-Nz; Thu, 12 Apr 2007 19:14:43 +0100 Date: Thu, 12 Apr 2007 19:03:00 -0000 To: binutils@sourceware.org, richard@codesourcery.com Subject: Re: Fix DT_TEXTREL handling for MIPS VxWorks Message-ID: <20070412181443.GC31609@networkno.de> References: <87r6qptu32.fsf@firetop.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r6qptu32.fsf@firetop.home> User-Agent: Mutt/1.5.13 (2006-08-11) From: Thiemo Seufer X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00158.txt.bz2 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