From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11017 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] use .object_arch to declare the architecture of the object file Date: Mon, 6 Feb 2017 11:21:50 +0100 Message-ID: <20170206102150.GD12395@port70.net> References: <20170104205123.GH19319@reiner-h.de> <20170204141947.5208-1-reiner@reiner-h.de> <20170205234047.GW1533@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1486376529 8626 195.159.176.226 (6 Feb 2017 10:22:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 10:22:09 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11032-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 06 11:22:02 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cagQr-0001mS-CN for gllmg-musl@m.gmane.org; Mon, 06 Feb 2017 11:22:01 +0100 Original-Received: (qmail 11308 invoked by uid 550); 6 Feb 2017 10:22:03 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11290 invoked from network); 6 Feb 2017 10:22:02 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20170205234047.GW1533@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:11017 Archived-At: * Rich Felker [2017-02-05 18:40:47 -0500]: > On Sat, Feb 04, 2017 at 03:19:47PM +0100, Reiner Herrmann wrote: > > musl fails to build for arm with current binutils (since commit bada434). > > Szabolcs Nagy suggested to use .object_arch for declaring the architecture > > of the object file, instead of .arch. > > > > See also: https://sourceware.org/ml/binutils/2006-09/msg00054.html > > --- > > src/thread/arm/atomics.s | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/src/thread/arm/atomics.s b/src/thread/arm/atomics.s > > index 202faa4a..101ad391 100644 > > --- a/src/thread/arm/atomics.s > > +++ b/src/thread/arm/atomics.s > > @@ -84,7 +84,7 @@ __a_gettp_cp15: > > bx lr > > > > /* Tag this file with minimum ISA level so as not to affect linking. */ > > -.arch armv4t > > +.object_arch armv4t > > .eabi_attribute 6,2 > > What's the earliest version of binutils that supports this? If it's a > newish feature we can't just unconditionally switch... (ARM is > infamous for that kind of breakage...) But if it's been around for a > really long time (long enough that older binutils versions are > seriously broken) it doesn't matter. binutils supports it since https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7a1d4c38938b172a8f3fdb38b01551306bd51d8d and it is present in the last gplv2 binutils source llvm seems to support it too since https://github.com/llvm-mirror/llvm/commit/09f38a0ef13bf542f7b3f1862d718e33e7de587b i think it's in llvm >=3.5