Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp891656imm; Fri, 13 Jul 2018 08:02:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdyBMQlhQ6wEcv2Kf6bxjRaKrE8vOheyG8S/orW2br2mOOfcIrhMATEtRl29XJrAgyEvLos X-Received: by 2002:a17:902:342:: with SMTP id 60-v6mr6813005pld.311.1531494170172; Fri, 13 Jul 2018 08:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531494170; cv=none; d=google.com; s=arc-20160816; b=KDf5/d21sq3F4kbZAPpECPtvIgXWbOvpGyQ6mhkr7iBlJLPf7PRBZo3i/WzFRRrxHA 8UAqk9arxUbfWaD/Vz/okElfqIj8/8hoOJrKSii9thLATO50AKr591eDHnU0fuFKG5yJ I6sIlE8qjkMDNCkKe845dm4oQrgys3km+6Hqbh/fUPRiq8EcWAYJbKylsucxQSrot+DO ccn5Nw80gNdK2Ry0jyDmvlya7196UkNGYhh1r/jhP3aW1oGC7HRu/NwbYis/vh+zODRh hk/A4dZsDFB1XLipMYVZ30bJjo+IorNanEr4JpAoLa05l8Oo7ustHRRP2svYrpFPRTq/ rj5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NBi05MrU2A563QxjjJRW6e6inYtkWLp2cu+E1TjM1G4=; b=juNot3mVzNnIOdjSHUyD+iH32PCmbM0GfD8aM/2J1JQLoUvMIicuNCovVQy31No/tq oavv2IZJv5Qxp8ElpZrg0uUwDsBVSP70DITtvyWG1Zbq9lsl4v8E4DRwCQko/2NXcY85 aNnas13Zmj2Pyp96zjd1Ex0GeHJU0UNPSYLkRiT6xN1HATFf23+8rk/sSOVL1Jx1+a8L fx/ujiPycnyzUcv1S5+1hfa4Lk1zIOTrktj6hdx+z+LAZ61u0FuJYu4fPFFDSvx/iIG0 1BmdzcgFbtHFZBhy3ai/H3DewkJPSWm54AUvehhsFgGdLxRDbl3j/nXeOrdLfHYodOqx rCKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=IW4YLQGx; 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 q3-v6si23984113plb.238.2018.07.13.08.02.22; Fri, 13 Jul 2018 08:02:50 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=IW4YLQGx; 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 S1729786AbeGMPQi (ORCPT + 99 others); Fri, 13 Jul 2018 11:16:38 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46197 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729647AbeGMPQh (ORCPT ); Fri, 13 Jul 2018 11:16:37 -0400 Received: by mail-lj1-f193.google.com with SMTP id 203-v6so13720014ljj.13 for ; Fri, 13 Jul 2018 08:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NBi05MrU2A563QxjjJRW6e6inYtkWLp2cu+E1TjM1G4=; b=IW4YLQGxkl8XUyjzjbpXkzrMXaFnlvMM+Ur19509Nd76g08AfjnFrSrRUPgn7Mcwf2 dX9vUvXpxYdJDYvkr710vCkJTzc1JPPFEmwvFTfMqul4xduEav86WgLaf1gr5xfEveqW /BeicFF1fErD9V1npATUCF6tUqs92pSrKXVqakkjG7cCHf3GRD5Aaf8ngw7oSVvqUwOn lOFe+g9Qp19922IuoitvQsb0seQJmkUF+mtgmC1LVJod77l/e6dwu1ncxLDFb6vro6K7 6Q6KY6KMreCNL+q0kQuQ74TZM1oGUbL1QZ4H8ndhflAuiqeMUBN1g1MUC34kDhGVDUYP eCrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NBi05MrU2A563QxjjJRW6e6inYtkWLp2cu+E1TjM1G4=; b=M7ddnSrmtJBrKWXpBJ0eGkVtvGpcrQ148f2pX35sIDt/U5v3hYfw+aXkDz4iqasNyA 4kwDQ65FVjscnUdzSuUFDiVHL00qa5oWe2r2bkYjneDZyiKRs0U79Cq4a0tOK2SNqn8N DdNZ+11zp0yqt3EkJArutPn24VLiO6E3KKO8cp5KwFoVfXxTLRb5FdXiNcXbbO1XeyzB GSFbSHY7EZF1Jm65skwedtEFrTYKAV1jZRC5FZFImtdX/ZdwOtbn596bspgsQ+u277k2 5cfw8Kc2lxeQEktw6/R37UvpKEKgwMilcJZyq3ptnOfTtUPekc3ZNqf5VsVoEGB6p6b9 6iNg== X-Gm-Message-State: AOUpUlFsL8wzM6mIwc36IuY5uie0qetUrQ7MQeM/7UdQ7IPlptC0AvW8 HkFDp3K4ojVyIPg62j/D3JQSuSrVDSBLgTq+gd0KBw== X-Received: by 2002:a2e:5519:: with SMTP id j25-v6mr3449165ljb.124.1531494096162; Fri, 13 Jul 2018 08:01:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:fc1c:0:0:0:0:0 with HTTP; Fri, 13 Jul 2018 08:01:34 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::5:e750] In-Reply-To: <20180713145910.2mlzip5ssk72cleo@localhost> References: <20180709200956.31158-1-labbott@redhat.com> <20180710090125.GA28924@arm.com> <20180710093615.GA30095@arm.com> <20180713145910.2mlzip5ssk72cleo@localhost> From: Olof Johansson Date: Fri, 13 Jul 2018 08:01:34 -0700 Message-ID: Subject: Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants" To: Will Deacon Cc: Paul Kocialkowski , Laura Abbott , Catalin Marinas , Linux ARM Mailing List , Linux Kernel Mailing List , Michal Marek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Olof