Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1480852imm; Tue, 10 Jul 2018 02:32:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdvgCqC2YtXR2EYkH4du7Vi8soz81hFz6+1yveP7JHeSIf15aXt6Kjj+RGqDai1SMlfQpS7 X-Received: by 2002:a17:902:1121:: with SMTP id d30-v6mr24407227pla.247.1531215142817; Tue, 10 Jul 2018 02:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531215142; cv=none; d=google.com; s=arc-20160816; b=NGUA+MpJ+2qspGLv2ajWS2rWcP6hW4e2t8UwmSPhgJoHr6KFvgWi2y6tHoWo7Vnluo o2WAnjm0lJBcwe511pnRrB+truk3ErHWfGx3qrk7TBjEM27E9EVyw6a8kKH+SuJ0Jxei Q9MhCvZSZ8BydoSyxK6USRD7pEam5c0fYSzUT+U1cff02LPnBDShXobH4EVA2ewAGOLn K1xIJpKs8Sve5pm6Ipg6Qvt1iT8o5GG8CBU1e6x0xj/+tZyHYAPpvxpf71y/oXi8I84e W7uip8ripPRILHPMd1aYR+hk3ctx1dmdIl0Io4ppfPWQQiHLlUrNDqhgenKInGg7LYD3 CdWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=19e2G0r1g/ou3eJjhrX+Dfh5n55kJV/JcJBu0JR2ecQ=; b=HZS99ryiAbqv+7e4CKDcQawcawYSUvIz7PPVIvSDGE7NV6XkbLkibW86HrO1Ea07gY hEbjJ2xQV3nS0qgInfTrwkcDCo88fNOhn8RSnLF29v8pLSjPLHwAS3WeJ+bfsXl0GyTj V0XhRzqSAsjEIp9cr5qe1Rrwiaryt+zdQt1+ngWkpwwgRzVeLqTlX2GBzly6H54j53F7 Sjc/ZgTTMGR/MAGw0Prapq+10TGaQdZLPjQGkouptJ0fDpX5dPHPcNc2HmEgEyEVMbiT 2PhM/Zc2CEhjNqCROlf/QonCcx4c9cNS2l5/uH0GGyHc63t7J5q6ovSkrtyU8/MnxRVe ioXA== 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 k14-v6si16493679pls.477.2018.07.10.02.32.08; Tue, 10 Jul 2018 02:32:22 -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 S1753275AbeGJJa6 (ORCPT + 99 others); Tue, 10 Jul 2018 05:30:58 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:52132 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357AbeGJJaz (ORCPT ); Tue, 10 Jul 2018 05:30:55 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id C9148C0135 for ; Tue, 10 Jul 2018 11:30:53 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id BB9F4C0EBA; Tue, 10 Jul 2018 11:30:52 +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=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT autolearn=disabled version=3.4.1 Received: from aptenodytes (AAubervilliers-681-1-12-56.w90-88.abo.wanadoo.fr [90.88.133.56]) by gagarine.paulk.fr (Postfix) with ESMTPSA id 9CEE2C0E8E; Tue, 10 Jul 2018 11:30:46 +0200 (CEST) Message-ID: Subject: Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants" From: Paul Kocialkowski To: Will Deacon , Laura Abbott Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 10 Jul 2018 11:30:39 +0200 In-Reply-To: <20180710090125.GA28924@arm.com> References: <20180709200956.31158-1-labbott@redhat.com> <20180710090125.GA28924@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, 2018-07-10 at 10:01 +0100, Will Deacon wrote: > Thanks, Laura. > > I'll take this as a fix, and add a comment to the Makefile to justify > why we need the linux target. So this comes down to either breaking fedora/debian toolchains (that don't support elf emulation mode) or breaking bare-metal toolchains (that don't support linux emulation mode). Since Linux is a bare-metal project that does not technically require the linux target (who said using "Linux" for all things is confusing?), I think it should aim for the elf target in the long term. But well, breaking Linux build in common distros isn't good either, so I guess it makes sense to revert this while distros toolchains are being fixed. Hopefully, it won't take too long. What do you think? Cheers, Paul > Will > > On Mon, Jul 09, 2018 at 01:09:56PM -0700, Laura Abbott wrote: > > This reverts commit 38fc4248677552ce35efc09902fdcb06b61d7ef9. > > > > This breaks compilation with Fedora gcc-8 tool chains: > > > > CHK include/generated/compile.h > > LD [M] arch/arm64/crypto/sha512-ce.o > > aarch64-linux-gnu-ld: cannot open linker script file ldscripts/aarch64elf.xr: No such file or directory > > make[1]: *** [scripts/Makefile.build:530: arch/arm64/crypto/sha512-ce.o] Error 1 > > make: *** [Makefile:1029: arch/arm64/crypto] Error 2 > > > > Fixes: 38fc42486775 ("arm64: Use aarch64elf and aarch64elfb emulation mode variants") > > Signed-off-by: Laura Abbott > > --- > > A bit rushed and I'm still debugging but I wanted to send this out > > before anyone else gets hit since it is -rc4. Seeing this on both native > > and cross compiles. > > --- > > arch/arm64/Makefile | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > > index 7976d2d242fa..f476d52ad8d6 100644 > > --- a/arch/arm64/Makefile > > +++ b/arch/arm64/Makefile > > @@ -60,13 +60,13 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) > > KBUILD_CPPFLAGS += -mbig-endian > > CHECKFLAGS += -D__AARCH64EB__ > > AS += -EB > > -LDFLAGS += -EB -maarch64elfb > > +LDFLAGS += -EB -maarch64linuxb > > UTS_MACHINE := aarch64_be > > else > > KBUILD_CPPFLAGS += -mlittle-endian > > CHECKFLAGS += -D__AARCH64EL__ > > AS += -EL > > -LDFLAGS += -EL -maarch64elf > > +LDFLAGS += -EL -maarch64linux > > UTS_MACHINE := aarch64 > > endif > > > > -- > > 2.17.1 > > -- Developer of free digital technology and hardware support. Website: https://www.paulk.fr/ Coding blog: https://code.paulk.fr/ Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/