Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1484348imm; Tue, 10 Jul 2018 02:36:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcsucn4juqKzmj+MwTq1CqU0ZYzd2SB+fPUpUPI65sFvn0kB+Xgt0TVOYKLVcWvqgBxs8/n X-Received: by 2002:a17:902:6945:: with SMTP id k5-v6mr23895870plt.175.1531215389730; Tue, 10 Jul 2018 02:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531215389; cv=none; d=google.com; s=arc-20160816; b=EoAdnr7m4XdwWNWqfOV7G1uc+M5u4KSkcGH22ikGzJcijgqEOUjiQ5DpLNYzvnTvgu DFECEpFw2NPKrYF3oIgTWUUKKlMbh+VUb2djhY6ukf95b/I0EOxhXEnKAGo5aVpfE7en YpXcBY84LAM27CwGnb6q8C6QqrVZLNQLU+gWxnDMYRoFtK1c49HvnoRsLGtWgcsLkd7a N48GRdS62F8QKhZe/mCmOW67ZPO3M4CubwD1DnJQV+jrf4dOM629RLHTaD+gz43XeHrH Yg4oyvCiFsHq4swqmS0Hh+PTHCk2xpQdf6LMgW1lPgkBEd3rkcmCLg+pBYcE39QY/Vki wWNQ== 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=/CQaKd/O+cgSFKTGjsUDADy+3ghM9rGFiIfQfguHdX0=; b=SjQRA4K3JNuG6AWT6b07z45J6gFRheP/vND99rCmMFTKnzRHgMgmqKeAj8uNFJspWU p2g8GNi6qOpR7GKSQMhScPmCpf8OHC4Gj0V7P7jkklGhCmmg1tSlwax1FKmr9EoVuglO IUEuMd9uA6m4FpQ8bSCdSNHMnyKFwf0bDCJSqPdF3mRwz8j9diWOlZR129SjY5UmkxXg vzFMYSvtTFnj+FABDswa1+epyUR6m8zX7KtcGR4dHsnwcAXnT5h8IbGpCI66ZN06EYPg Fxk7oerYHXz41UNvQIGVhrto/4QoStm2ZWveP9iIUSaigGlyroQ7s8RGT2l9KBRiVzcQ QP2w== 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 q7-v6si15979258pll.445.2018.07.10.02.36.15; Tue, 10 Jul 2018 02:36:29 -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 S933095AbeGJJfg (ORCPT + 99 others); Tue, 10 Jul 2018 05:35:36 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43616 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335AbeGJJff (ORCPT ); Tue, 10 Jul 2018 05:35:35 -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 A7E827A9; Tue, 10 Jul 2018 02:35:34 -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 78E613F318; Tue, 10 Jul 2018 02:35:34 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 325DE1AE53F1; Tue, 10 Jul 2018 10:36:16 +0100 (BST) Date: Tue, 10 Jul 2018 10:36:16 +0100 From: Will Deacon To: Paul Kocialkowski Cc: Laura Abbott , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants" Message-ID: <20180710093615.GA30095@arm.com> References: <20180709200956.31158-1-labbott@redhat.com> <20180710090125.GA28924@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. Will