Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3783120imm; Mon, 2 Jul 2018 05:37:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKg4TMWUyrfujKzf5jRej/n1owFQv3Gu7RaKvf2sFaHVY91eFYhtHdQ+sWxYUJjgD/TnZee X-Received: by 2002:a63:9856:: with SMTP id l22-v6mr22088281pgo.208.1530535021070; Mon, 02 Jul 2018 05:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535021; cv=none; d=google.com; s=arc-20160816; b=DFvQGHT6kMqBnHSH8HayPFLzlRnsQL7FjRjEmqYTNEOphl5ZR+MDT+fxlhwM8IhxWQ eyh1KzYereTbmKYZDVewPfqxY+pskNKX6OOoJ1eWjTHXk+mn/iZXuIHHyK39FfaviTKy Y+5mfor/aeaBrOoRz4ijXERE/JFAuQGtT+aKzICsoluDD9bceDCQ8lkNdhDKHrKpjWX6 Rah3FMhj+j3fR2Fzukej1eJyFMOyZfNJqeIHYx4IbxS/1VBd4kga53N7CwRuChpg88YB dV2jrP3FawAxJKaGS43gGGGOpab6Ue/A/7XEvLNOGcFU78kIm4SwaPNjwvBzJp3bdtfN 8DkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hofJEZrqFUveKANsVG9dvG9ZVUpanqGmObA8eEFD3Lk=; b=eXKbZC/Ha+eBQNN8wGQrIsibjX6kN0A8Z6K8zZVGJ02KlNhDA3lB0X/V3oWkDOyZtf Vi3SgbOs037d21hQBMNWBUc8GqTgkVEPMgSniCcwJ9pxqx3GCL7TNAF67RW1ptU4dDDL qOsHmkXfvBEYDvXzFv3X3Ct9N5dwFqrc72uA+Hd4GbsGobv5OYgZDUdsTjb0rcXujxkr ZI+JQ3NEM5dBbeLYhBeYz5ZXJbPM4m3qERBa8INu2UC9mH6hdB388LMlr5znJFp+H6Jp gaStODnKBe9FmNzKEh/uODPuAfpsnmS7nbTM7U+oxv57VPzq68ymiFfbT8oS+mSTumqL 8smg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11-v6si2868249pfe.102.2018.07.02.05.36.46; Mon, 02 Jul 2018 05:37:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933860AbeGBJXK (ORCPT + 99 others); Mon, 2 Jul 2018 05:23:10 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:53836 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933829AbeGBJXI (ORCPT ); Mon, 2 Jul 2018 05:23:08 -0400 X-Greylist: delayed 358 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Jul 2018 05:23:08 EDT Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 4267CBFEB9; Mon, 2 Jul 2018 11:17:09 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id C6EE0C0780; Mon, 2 Jul 2018 11:17:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 9C0C1BFFE3; Mon, 2 Jul 2018 11:17:01 +0200 (CEST) From: Paul Kocialkowski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Paul Kocialkowski , stable@vger.kernel.org Subject: [PATCH] arm64: Use aarch64elf and aarch64elfb emulation mode variants Date: Mon, 2 Jul 2018 11:16:59 +0200 Message-Id: <20180702091659.17571-1-contact@paulk.fr> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The aarch64linux and aarch64linuxb emulation modes are not supported by bare-metal toolchains and Linux using them forbids building the kernel with these toolchains. Since there is apparently no reason to target these emulation modes, the more generic elf modes are used instead, allowing to build on bare-metal toolchains as well as the already-supported ones. Fixes: 3d6a7b99e3fa ("arm64: ensure the kernel is compiled for LP64") Cc: stable@vger.kernel.org Signed-off-by: Paul Kocialkowski --- arch/arm64/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 87f7d2f9f17c..3e959ac43b40 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -67,14 +67,14 @@ KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__AARCH64EB__ AS += -EB LD += -EB -LDFLAGS += -maarch64linuxb +LDFLAGS += -maarch64elfb UTS_MACHINE := aarch64_be else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__AARCH64EL__ AS += -EL LD += -EL -LDFLAGS += -maarch64linux +LDFLAGS += -maarch64elf UTS_MACHINE := aarch64 endif -- 2.17.1