From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11013 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] use .object_arch to declare the architecture of the object file Date: Sun, 5 Feb 2017 18:40:47 -0500 Message-ID: <20170205234047.GW1533@brightrain.aerifal.cx> References: <20170104205123.GH19319@reiner-h.de> <20170204141947.5208-1-reiner@reiner-h.de> 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 1486338062 10592 195.159.176.226 (5 Feb 2017 23:41:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2017 23:41:02 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11028-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 06 00:40:58 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 1caWQS-0002XF-35 for gllmg-musl@m.gmane.org; Mon, 06 Feb 2017 00:40:56 +0100 Original-Received: (qmail 5727 invoked by uid 550); 5 Feb 2017 23:41:00 -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 5706 invoked from network); 5 Feb 2017 23:40:59 -0000 Content-Disposition: inline In-Reply-To: <20170204141947.5208-1-reiner@reiner-h.de> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11013 Archived-At: 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. Rich