Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp898442imm; Fri, 13 Jul 2018 08:07:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcsc9wfiSOiiNlHIhcF4YLq1+vQV/dyShoD+wf4rQqEFWkiRwV/C2BgAeEQlClwXxJon633 X-Received: by 2002:a63:b02:: with SMTP id 2-v6mr430192pgl.301.1531494467922; Fri, 13 Jul 2018 08:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531494467; cv=none; d=google.com; s=arc-20160816; b=H4RKl4AX0OhuPfUHr/26iXg4VicMZn4lYEEOolOUGO4Dq1LkaRatNXXPRZRLUUXOlY J8kUT94t53n7zibXQ5S1m1gOR0NmOAaZMpSMmLnkaMoxOKF1laGYtH4neEuRyhNmO6gy Q/JLntTvfcl3ZvGe5d9v6KR/+x24LoD5qKVWVyiHxoe+gzH1ZDlyO4dNcTwUGc1z8KN9 qHyKwJTzj25N52dq1A+oYMftgHb83U7zNbE7Hd4IJwQjirazMO62Cxx8kd9mQ3sTWDwN buuXN8Q7sbJG4cpj+PF5XC74wDYsqHhpbFsWEw9aWvMzrKk/wZETbYK5g02GgEp2l9Xn CmEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=N3dRg5j++1lk1onucS30eiFK54LCJ90xroVhgW37Sx8=; b=PsPuN7oykr8WzTfqpzMhAQtwgiIFpC7CMUktUZD0/rXRtYfgGWRO6MY088KXtHKR8L C6FAT6Phr21hBlJUUriCZNWd4SwSoc09oHcgZvV4cE1TkWaVW4k57qIenAr1gOFV9XPl 2s866W82+lskP4czm8VOU/EpPYBJQgdZMWCkmpaMYNhFYxKJcZfDPvvNa/gmbom04BU+ fntnpHVv7cEnNBTDHK50nGrgB2TLqQTLcBlQsrqwA6MjCq04Ai9/ZrbP1t9UUff5ODJr +f4DmABGZxuJrW9gdce7Lde8FNUlJlzlcTbUJW2C3GmiMa8IEo0GzMUjFDIq0JE8Q6vM dwPg== 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 u7-v6si22107191pgr.593.2018.07.13.08.07.30; Fri, 13 Jul 2018 08:07:47 -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 S1729987AbeGMPVU (ORCPT + 99 others); Fri, 13 Jul 2018 11:21:20 -0400 Received: from foss.arm.com ([217.140.101.70]:36606 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729643AbeGMPVU (ORCPT ); Fri, 13 Jul 2018 11:21:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B5BC57A9; Fri, 13 Jul 2018 08:06:19 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 87BF83F5B1; Fri, 13 Jul 2018 08:06:19 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 338591AE4D0E; Fri, 13 Jul 2018 16:07:02 +0100 (BST) Date: Fri, 13 Jul 2018 16:07:02 +0100 From: Will Deacon To: Olof Johansson Cc: Paul Kocialkowski , Laura Abbott , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Marek Subject: Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants" Message-ID: <20180713150701.GA3049@arm.com> References: <20180709200956.31158-1-labbott@redhat.com> <20180710090125.GA28924@arm.com> <20180710093615.GA30095@arm.com> <20180713145910.2mlzip5ssk72cleo@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180713145910.2mlzip5ssk72cleo@localhost> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Olof, On Fri, Jul 13, 2018 at 07:59:10AM -0700, 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? I already sent the revert to Linus, but I can certainly queue the ld-option for 4.19 if we pick up some more tested-bys. Could you send it out as its own patch please? Cheers, Will