From patchwork Mon Jan 6 15:36:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Shawcroft X-Patchwork-Id: 307351 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 35B002C00CA for ; Tue, 7 Jan 2014 02:36:18 +1100 (EST) 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:subject:content-type; q= dns; s=default; b=V2pJd2sg+/Ul8UMn1Oa0kClqOCTEq7kVk4pa3YpTSxYCyk +kZLxzGbu9ZNzS2OuELipbe5djxZUFxYifWZGiT/eetY+B3QBf1SQnpCAFGqS00/ OGkXxK8U4ch3B8HrsSCujHwoskZQ34Hr2CsrdJwzmznRe+1lOjiCYyWkcaVpk= 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:subject:content-type; s= default; bh=oNYRpmNitizYsvI7JZUlL3FmLTI=; b=a3FZrhkp1wsfs2nAzcfe sUfep21QCZNcvM5CgHTtWKWvB0LAOezXIZY6s1K+OUWqACAgEJ9nx44pi7MlTLG8 ZKplPY1d6dXethmQ6RStJFJxzIH/kEhxRTQj4EvNUj0+DR0QhqLg34aJAP6zXK9g 06ZoXubjlhjMFTIg+GKiKYY= Received: (qmail 23740 invoked by alias); 6 Jan 2014 15:36:11 -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 23727 invoked by uid 89); 6 Jan 2014 15:36:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Jan 2014 15:36:10 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 06 Jan 2014 15:36:08 +0000 Received: from [10.1.207.140] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 6 Jan 2014 15:36:08 +0000 Message-ID: <52CACD67.7040804@arm.com> Date: Mon, 06 Jan 2014 15:36:07 +0000 From: Marcus Shawcroft User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [AArch64] Define BE loader name. X-MC-Unique: 114010615360800201 Hi, This patch defines the AArch64 BE loader name. Corresponding patches for glibc and binutils have been posted on the relevant lists. /Marcus * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand loader name using mbig-endian. (LINUX_TARGET_LINK_SPEC): Pass linker -m flag. diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h index 15272b8..a8f0771 100644 --- a/gcc/config/aarch64/aarch64-linux.h +++ b/gcc/config/aarch64/aarch64-linux.h @@ -21,7 +21,7 @@ #ifndef GCC_AARCH64_LINUX_H #define GCC_AARCH64_LINUX_H -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64.so.1" +#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" #define CPP_SPEC "%{pthread:-D_REENTRANT}" @@ -32,7 +32,8 @@ %{rdynamic:-export-dynamic} \ -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \ -X \ - %{mbig-endian:-EB} %{mlittle-endian:-EL}" + %{mbig-endian:-EB} %{mlittle-endian:-EL} \ + -maarch64linux%{mbig-endian:b}" #define LINK_SPEC LINUX_TARGET_LINK_SPEC