From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 13:09:30 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 A13AE1065672 for ; Wed, 22 Jun 2011 13:09:30 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 369628FC15 for ; Wed, 22 Jun 2011 13:09:30 +0000 (UTC) Received: by wyb33 with SMTP id 33so782985wyb.13 for ; Wed, 22 Jun 2011 06:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=HBzIMM1BN5hCU98ooBK75pdXxTjFd/r94ZnM6VkxFJM=; b=PMY7hDOfLjRlwoOn+g2TSqft1g6yUjbawZIgtZMbEAFXQ8E2sv2ZkGu4ONyV4OU122 EjEg8HCxOInPkwAuwdVRZzEUGAJU29dF4dyPEZdZoae6lplY0TBZW/052/8LZs7HFhRC xvi2+0mgPIBlKpQ0PnFYjcRZ6BdIbaEqdjQ/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=dE6PHfu3hG/ikqfu+m5D42LA0t2C1X29QzvCrHBKcRGunH0bnb6/vnAI6YITGrBFud LoqyDKzYYyzOK/QonvyBA108lPtyTSPxwAD58qoP8CokGQM96wrYP/H66Riw/q7KGCZU YA1yCI4HFCo8PKZGjExNMtNcz2pmoc4Rs0qXI= Received: by 10.227.209.146 with SMTP id gg18mr732531wbb.71.1308748169216; Wed, 22 Jun 2011 06:09:29 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id gf6sm430268wbb.58.2011.06.22.06.09.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 06:09:28 -0700 (PDT) From: Damjan Marion Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Jun 2011 15:09:26 +0200 Message-Id: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> To: toolchain@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Cc: Subject: 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 13:09:30 -0000 Hi, On my ongoing effort to support clang cross-compiling of world for ARM = architecture I hit one weird issue: 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 Both have same opcode: 0xe1a00060. 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". I see 3 options to fix this: 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 Any thoughts how to proceed? Thanks, Damjan