From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 15:42:45 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECAD71065676 for ; Wed, 22 Jun 2011 15:42:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A9BF28FC08 for ; Wed, 22 Jun 2011 15:42:45 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5MFdHL6092990 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Wed, 22 Jun 2011 09:39:19 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> Date: Wed, 22 Jun 2011 09:39:08 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Wed, 22 Jun 2011 09:39:19 -0600 (MDT) Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 15:42:46 -0000 I'd be inclined to include a small patch to FreeBSD's binutils to = implement this. You might be able to snag it from a newer version of = binutils if you can track down the author of that code and ask if you = can include it in a GPLv2 version of binutils. Warner On Jun 22, 2011, at 7:09 AM, Damjan Marion wrote: >=20 > Hi, >=20 > On my ongoing effort to support clang cross-compiling of world for ARM = architecture I hit one weird issue: >=20 > Problem is that old ARM Architecture Reference Manual (ARMv5) = specifies mnemonics "mov r0, r0, rrx"=20 > while new ARM ARM defines same instruction as "rrx r0,r0".=20 >=20 > Both have same opcode: 0xe1a00060. >=20 > Problem is that clang currently uses GAS to assemble files and GAS = version we have (2.17.50) doesn't have a clue about new mnemonics "rrx = r0,r0". >=20 > I see 3 options to fix this: >=20 > 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, = rrx" instead of "rrx r0,r0") > 2. Maintain same patch for freebsd only > 3. patch binutils to support this new mnemonics >=20 > Any thoughts how to proceed? >=20 > Thanks, >=20 > Damjan >=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to = "freebsd-toolchain-unsubscribe@freebsd.org" >=20 >=20