From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17326 invoked by alias); 28 Jan 2005 16:27:02 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 17220 invoked from network); 28 Jan 2005 16:26:56 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 28 Jan 2005 16:26:56 -0000 Received: (qmail 16314 invoked from network); 28 Jan 2005 16:26:55 -0000 Received: from localhost (HELO ?10.1.1.4?) (julian@127.0.0.1) by mail.codesourcery.com with SMTP; 28 Jan 2005 16:26:55 -0000 Message-ID: <41FA67C9.4010009@codesourcery.com> Date: Fri, 28 Jan 2005 16:27:00 -0000 From: Julian Brown User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) MIME-Version: 1.0 To: Ian Lance Taylor CC: binutils@sources.redhat.com Subject: Re: [PATCH] Add support for ARM AAPCS R_ARM_V4BX relocation type References: <41FA5907.6020505@codesourcery.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------090506030004060608070000" X-SW-Source: 2005-01/txt/msg00485.txt.bz2 This is a multi-part message in MIME format. --------------090506030004060608070000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 179 Ian Lance Taylor wrote: > > This option should be documented in ld.texinfo, and the new option > should be mentioned in ld/NEWS. Is this ok? -- Julian Brown CodeSourcery, LLC --------------090506030004060608070000 Content-Type: text/plain; name="binutils-patch-3" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="binutils-patch-3" Content-length: 1808 ? bfd/doc/bfd.info ? bfd/doc/bfd.info-1 ? gas/doc/as.info ? gas/doc/as.info-1 Index: ld/NEWS =================================================================== RCS file: /cvs/src/src/ld/NEWS,v retrieving revision 1.57 diff -c -p -r1.57 NEWS *** ld/NEWS 21 Jan 2005 12:04:25 -0000 1.57 --- ld/NEWS 28 Jan 2005 16:22:31 -0000 *************** *** 1,5 **** --- 1,8 ---- -*- text -*- + * Support for the R_ARM_V4BX relocation as defined in the ARM AAELF + specification has been added via the --fix-v4bx command-line option. + * New linker script construct AS_NEEDED(), which sets the --as-needed flag for input files listed inside of it. Index: ld/ld.texinfo =================================================================== RCS file: /cvs/src/src/ld/ld.texinfo,v retrieving revision 1.137 diff -c -p -r1.137 ld.texinfo *** ld/ld.texinfo 23 Jan 2005 07:43:52 -0000 1.137 --- ld/ld.texinfo 28 Jan 2005 16:22:36 -0000 *************** meanings, and target defaults are as fol *** 5139,5144 **** --- 5139,5158 ---- @samp{R_ARM_GOT_PREL} (arm*-*-linux, arm*-*-*bsd) @end table + @cindex FIX_V4BX + @kindex --fix-v4bx + The @samp{R_ARM_V4BX} relocation (defined by the ARM AAELF + specification) enables objects compiled for the ARMv4 architecture to be + interworking-safe when linked with other objects compiled for ARMv4t, but + also allows pure ARMv4 binaries to be built from the same ARMv4 objects. + + In the latter case, the switch @option{--fix-v4bx} must be passed to the + linker, which causes v4t @code{BX rM} instructions to be rewritten as + @code{MOV PC,rM}, since v4 processors do not have a @code{BX} instruction. + + In the former case, the switch should not be used, and @samp{R_ARM_V4BX} + relocations are ignored. + @ifclear GENERIC @lowersections @end ifclear --------------090506030004060608070000--