From patchwork Mon Apr 20 18:52:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 462879 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 922B41400DE for ; Tue, 21 Apr 2015 04:52:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=oJ/aWhtY; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; q=dns; s=default; b=apSz4zUVZdC0333Iz axQQBtGWDHlL9hsbUeYNnd8t5zLIs8lnjfvjNG28f6lvozhmY8TAVwxsPlWhi5pu xd4Lq8GBPBzNNq5NS//fK634F6APL3/aaDjgUMMVB5MXBuBJUEYH2ZctZ+h1i/Iv bKlfDdJXgjAf0G9NKzRD2Ccaow= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; s=default; bh=Ook3HtXRGSbAIUKasj/Nk2I qCH0=; b=oJ/aWhtYEaUoF7fI19YQle5KB8T2CDchwU8zH2VwI0LG2QrVQPkteXH M1MYRh8a8xZGsp2NPShAGu2y0jGICbZPb2BUfI/B/WnzbE25jBJoMqB5OtVURv94 7aJvrBgZWyPdX+N5G+dZ62xKp/y7f3hyJ2gpTJfQt4deKVcyaH7U= Received: (qmail 83063 invoked by alias); 20 Apr 2015 18:52:50 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 81989 invoked by uid 89); 20 Apr 2015 18:52:49 -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) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Apr 2015 18:52:49 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-14.uk.mimecast.lan; Mon, 20 Apr 2015 19:52:46 +0100 Received: from [10.2.206.56] ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 20 Apr 2015 19:52:45 +0100 Message-ID: <55354AFD.3000108@arm.com> Date: Mon, 20 Apr 2015 19:52:45 +0100 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: "gcc-patches@gcc.gnu.org" CC: Gregor Richards , Rich Felker , Szabolcs Nagy Subject: [PATCH 3/13] aarch64 musl support References: <55354A4A.4060702@arm.com> In-Reply-To: <55354A4A.4060702@arm.com> X-MC-Unique: UOutwjn4TkGwbFTsiAqzDQ-1 X-IsSubscribed: yes Set up dynamic linker name for aarch64. gcc/Changelog: 2015-04-16 Gregor Richards Szabolcs Nagy * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define. diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h index 9abb252..5ff83dd 100644 --- a/gcc/config/aarch64/aarch64-linux.h +++ b/gcc/config/aarch64/aarch64-linux.h @@ -23,6 +23,14 @@ #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" +#if TARGET_BIG_ENDIAN_DEFAULT +#define MUSL_DYNAMIC_LINKER_E "%{mlittle-endian:;:_be}" +#else +#define MUSL_DYNAMIC_LINKER_E "%{mbig-endian:_be}" +#endif +#define MUSL_DYNAMIC_LINKER \ + "/lib/ld-musl-aarch64" MUSL_DYNAMIC_LINKER_E ".so.1" + #undef ASAN_CC1_SPEC #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"