From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48000 invoked by alias); 27 Apr 2015 14:33:11 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 47899 invoked by uid 89); 27 Apr 2015 14:33:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Apr 2015 14:33:09 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-27.uk.mimecast.lan; Mon, 27 Apr 2015 15:33:06 +0100 Received: from [10.2.206.56] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Apr 2015 15:33:06 +0100 Message-ID: <553E48A1.5060704@arm.com> Date: Mon, 27 Apr 2015 14:33:00 -0000 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "pinskia@gmail.com" CC: "gcc-patches@gcc.gnu.org" , Gregor Richards , Rich Felker , Szabolcs Nagy Subject: Re: [PATCH 3/13] aarch64 musl support References: <55354A4A.4060702@arm.com> <55354AFD.3000108@arm.com> <3250AB02-AD95-457B-8111-60C121AACD86@gmail.com> In-Reply-To: <3250AB02-AD95-457B-8111-60C121AACD86@gmail.com> X-MC-Unique: 9cCA3FrzTDi0BGoX5rZvzg-1 Content-Type: multipart/mixed; boundary="------------060106010101030806070100" X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg01631.txt.bz2 This is a multi-part message in MIME format. --------------060106010101030806070100 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-length: 590 On 21/04/15 15:16, pinskia@gmail.com wrote: >=20 > I don't think you need to check if defaulting to little or big-endian her= e are the specs always have one or the other passing through.=20 >=20 > Also if musl does not support ilp32, you might want to error out. Or even= define the dynamic linker name even before support goes into musl.=20 >=20 Patch v2. (now _ilp32 abi variant is included too) gcc/Changelog: 2015-04-27 Gregor Richards Szabolcs Nagy * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define. --------------060106010101030806070100 Content-Type: text/x-patch; name=03-aarch64-v2.diff Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="03-aarch64-v2.diff" Content-length: 546 diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch6= 4-linux.h index 9abb252..2d647c3 100644 --- a/gcc/config/aarch64/aarch64-linux.h +++ b/gcc/config/aarch64/aarch64-linux.h @@ -23,6 +23,9 @@ =20 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mab= i=3Dilp32:_ilp32}.so.1" =20 +#undef MUSL_DYNAMIC_LINKER +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi= =3Dilp32:_ilp32}.so.1" + #undef ASAN_CC1_SPEC #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" =20 --------------060106010101030806070100--