Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp900257imm; Fri, 13 Jul 2018 08:09:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpesk9LlKuHpIxwMMdnqLOVRe6YeDUVrxhHcC4gj8SyjkGzS1WAvlmNhFwb/MOUGn8wDvELF X-Received: by 2002:a63:ad07:: with SMTP id g7-v6mr6428042pgf.19.1531494561305; Fri, 13 Jul 2018 08:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531494561; cv=none; d=google.com; s=arc-20160816; b=h2pb+ToV/cnKKQNDjLIXYrkQZqpX3BOpi0q2BV5dGc5cCJ31gEdNVvHi2Rk2W1fhky Dy2l/VFZP23aSA07MzSWK7b/weswF2nFkW0yPhxg4LrPopHR/t4GHzvqk5z4QdXc+46e 1FL5eJiy4ggvF0AaXRFGAnYoKKiFZjqBP06e1GVRtswQbhoobPGnN7EBB/LJwG8OOCCP eiWhp+5JyMT9PSGqPqtYwB6HB4wYV+sTYDjmnURHpu5dfvWBBLOwlJHxM+FYmURnL8E9 ok3AVi6ZqpaXVB6GvYlztryHX6TCzpZ5e29IYRrJ9lgCP4zu/XCgT9OR52eA05+WP6+P nrrA== 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=c+VO/fAfYiv6nIPlh1LW1T4dWop0PBYMzS8KccD0CSw=; b=gGqOXVc6BbGbMIyjNWQ6zI+WO7K/nWZ7W4JukLVvgARnciTMjgp5jZF6SgD55N5ax6 a77QBFT9+5ScvEdLkkxdv4TXL8e2OeFMe0cIM4hnM0ULEgGJ/XbY+6zCL85siwNlYWzh 9xbd3LeJmTUTeWh1waOQP6bAGbZZeUMSfOIS25VqeU6cgC7d0sF4sWfYamDz2xTYInt4 T6XbigGODvBL6tL2gXwrS/MQyeuGN2m+e4+2gtbxqF3SfClfKj/EsnFSP09N+BHApe/z Q9CQEI7i3mKjdk1OYpM013uYf7ypujxV6H577i+NAuV/PSxx96VPUkpnJnsOPGo+Yl6L JzJg== 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 o189-v6si22628157pga.577.2018.07.13.08.09.02; Fri, 13 Jul 2018 08:09:21 -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 S1730683AbeGMPX0 (ORCPT + 99 others); Fri, 13 Jul 2018 11:23:26 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:52720 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729653AbeGMPXZ (ORCPT ); Fri, 13 Jul 2018 11:23:25 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 19D84C013D for ; Fri, 13 Jul 2018 17:08:23 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 8B700C0EE0; Fri, 13 Jul 2018 17:08:22 +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-27-161.w90-88.abo.wanadoo.fr [90.88.147.161]) by gagarine.paulk.fr (Postfix) with ESMTPSA id 33F91C0ED8; Fri, 13 Jul 2018 17:08:13 +0200 (CEST) Message-ID: Subject: Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants" From: Paul Kocialkowski To: Olof Johansson , Will Deacon Cc: Laura Abbott , Catalin Marinas , Linux ARM Mailing List , Linux Kernel Mailing List , Michal Marek Date: Fri, 13 Jul 2018 17:08:09 +0200 In-Reply-To: References: <20180709200956.31158-1-labbott@redhat.com> <20180710090125.GA28924@arm.com> <20180710093615.GA30095@arm.com> <20180713145910.2mlzip5ssk72cleo@localhost> 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 Fri, 2018-07-13 at 08:01 -0700, Olof Johansson wrote: > On Fri, Jul 13, 2018 at 7:59 AM, Olof Johansson wrote: > > On Tue, Jul 10, 2018 at 10:36:16AM +0100, Will Deacon wrote: > > > On Tue, Jul 10, 2018 at 11:30:39AM +0200, Paul Kocialkowski wrote: > > > > 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? > > > > > > Yes, we need to revert the change since it's a regression otherwise. I think > > > the best course of action here would be to find a way that we can either > > > tell the linker that it doesn't need the missing linker scripts because > > > we're providing our own, or find a way to pass different LD flags depending > > > on whether or not we have a linux toolchain. > > > > > > For now, I've pushed the revert to for-next/fixes. > > > > Hi Will, > > > > This is regressed in mainline as well. But I think we can just use a (slightly > > improved) ld-option here? I checked it for x86 regression since it uses the > > one-argument version. Patch is here, can you pick that up instead and get it in > > for 4.18-rc? > > > > Thanks, > > > > > > -Olof > > > > From 0d73b2d1774d5edce20aac919ba356b61d098646 Mon Sep 17 00:00:00 2001 > > From: Olof Johansson > > Date: Fri, 13 Jul 2018 07:56:11 -0700 > > Subject: [PATCH] arm64: Fix build on some toolchains > > > > Not all toolchains have the baremetal elf targets, RedHat/Fedora ones in > > particular. So, probe for whether it's available and use the previous > > (linux) targets if it isn't. > > > > Fixes: 38fc42486775 ("arm64: Use aarch64elf and aarch64elfb emulation mode variants") > > Signed-off-by: Olof Johansson > > Of course, please add: > Reported-by: Laura Abbott > > or other suitable tag. Sloppy of me to miss. Thanks for taking care of this patch! I will definitely try it when I get the chance. Cheers, Paul -- 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/