Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4175522ybi; Mon, 15 Jul 2019 05:05:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq0c0ZJg3E94SLlH/0wnfTZ67FLqSyVavU53jOhZgnXix18UbcKMGIUY58cZDdFQ+kfveY X-Received: by 2002:a17:90a:3544:: with SMTP id q62mr29209129pjb.53.1563192351942; Mon, 15 Jul 2019 05:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563192351; cv=none; d=google.com; s=arc-20160816; b=RCehXRg5vzDYgbEwzlsPWhMsDHa6RZt+NtqKls7BI+VAOFhtwo3SN1VJPALUwA6h5k k3IavYckCzC5liw2mh5Xjk+DXIg/p7A1Kzt1yfRBWG96j7BpYLupfi/MwOIY/WiqbWye YMGTH04+ccm4VeXlBsyCAGkXPDLPds7Z9v46HnKvYWF3RQ+yoERm4xXKKBcLtACZTJcU 4lqR2xT41Wo1+Odp9wnDmofH7V4lR18og5YbvMcC5pXnXBNrSUsZho2/G5KKKzzvEGY6 sjVEyA2c3+jRAK4Xs4zl2mkBeIpk60eko6Aj51fdmKi4kk2oTYvAKBzNZpYDeSrP432C R/fA== 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 :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=7Onnwj4Aol7vBEfdqH7wYkCIRDkp83Cer5+EmKQdOFE=; b=cWgVb/f1ZXDNtEcW2oMIvu4bXWCZp15kTiryjpiSLd+qmZ68+pfWLKYAD+sdcKFnGP AVYdSZs96oUBe2jNFuikPamCfbrfmkzq44SH87lY5fNgSoS+PEzz4o2ahDevY9fzCdMw ByR7BmUzqMnfF3EZctUJkLBSsZSas2UrXFM/uDyjQoNGBYO9kIzIUuuAdWyum586WXwW 3A0HvnpDfEjN19s4bCVSEnalw2nN1Yh/tDZbx9MzzwxybXdsTf2mS4CkXpcEOj9gD4vF 49JEIUdiWLdhKon/7xH/oiiDPwOaF9RdtDYkm/cZSL9wX5R+y+dqFby7bv7SlN9yI4N5 UNGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=w00yTOzI; 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 v99si15676307pjb.82.2019.07.15.05.05.34; Mon, 15 Jul 2019 05:05:51 -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=@nifty.com header.s=dec2015msa header.b=w00yTOzI; 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 S1730030AbfGOMEs (ORCPT + 99 others); Mon, 15 Jul 2019 08:04:48 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:48525 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729988AbfGOMEr (ORCPT ); Mon, 15 Jul 2019 08:04:47 -0400 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x6FC4NmB010439 for ; Mon, 15 Jul 2019 21:04:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x6FC4NmB010439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563192264; bh=7Onnwj4Aol7vBEfdqH7wYkCIRDkp83Cer5+EmKQdOFE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=w00yTOzIaj5vl2FtI+QcSJXcMye06NqSFvXFLwxK6Xa5KcQPEG/PP3Kqv0UoFuuX+ y12fzYi1JP/P8qGSihacuSJ6KEvFmiIp76xAtOUCxidESiXiqWy1MHGbchMGlZVciU hdfOOz/NSNlV/Uh7QxM8iROXSzRF8uMWxEJTGx0BO1LCR7G1AENoJx4Pv1c3fZYgpf UQKK8Mp52j3xI+Xer660ENag//H+hmP/BNbAPaosbDTgL6epk8+OK44rt7KE7/t/6y WFLXdA51u/LWT8zTQnGVh8fPD6v/FgmcwQ7TBuG7Okv4pNMYYnAjgMMVoJKHIML2EU A/1mh4sdcHKnQ== X-Nifty-SrcIP: [209.85.217.42] Received: by mail-vs1-f42.google.com with SMTP id 190so11143053vsf.9 for ; Mon, 15 Jul 2019 05:04:23 -0700 (PDT) X-Gm-Message-State: APjAAAUwOQxY0auZIwdAPX0W0fCSVx6YItK4tXXCbfP9vXRe6rdrf5jW 00nfHpiJjnRIJf63bvLopWEIeKTJeXDTNi1iPrQ= X-Received: by 2002:a67:fc45:: with SMTP id p5mr15874928vsq.179.1563192262732; Mon, 15 Jul 2019 05:04:22 -0700 (PDT) MIME-Version: 1.0 References: <20190713032106.8509-1-yamada.masahiro@socionext.com> <20190713124744.GS14074@gate.crashing.org> <20190713131642.GU14074@gate.crashing.org> <20190713235430.GZ14074@gate.crashing.org> <87v9w393r5.fsf@concordia.ellerman.id.au> <20190715072959.GB20882@gate.crashing.org> In-Reply-To: <20190715072959.GB20882@gate.crashing.org> From: Masahiro Yamada Date: Mon, 15 Jul 2019 21:03:46 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition To: Segher Boessenkool Cc: Michael Ellerman , Stephen Rothwell , Linux Kernel Mailing List , Nicholas Piggin , Paul Mackerras , linuxppc-dev 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 Mon, Jul 15, 2019 at 4:30 PM Segher Boessenkool wrote: > > On Mon, Jul 15, 2019 at 05:05:34PM +1000, Michael Ellerman wrote: > > Segher Boessenkool writes: > > > Yes, that is why I used the environment variable, all binutils work > > > with that. There was no --target option in GNU ar before 2.22. I use binutils 2.30 It does not understand --target option. $ powerpc-linux-ar --version GNU ar (GNU Binutils) 2.30 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. If I give --target=elf$(BITS)-$(GNUTARGET) option, I see this: powerpc-linux-ar: -t: No such file or directory > > Yeah, we're not very good at testing with really old binutils, so I > > guess we broke that. > > > > I'm inclined to merge this, it doesn't seem to break anything, and it > > fixes using --target on old binutils that don't have it. > > But we don't set the target any other way either. I don't think this > will work with a 32-bit toolchain (default target 32 bit) and a 64-bit > kernel, or the other way around. > > Then again, does that work at *all* nowadays? Do we even consider that > important, *should* it work? Let me confirm if I understood this discussion. [1] KBUILD_ARFLAGS += --target=elf$(BITS)-$(GNUTARGET) is pointless since it is always overridden by another KBUILD_ARFLAGS assignment. [2] If we stop overriding it, it would cause build errors. So, --target is not only useless, but it is rather harmful. So, we all agreed with this patch, right? We are discussing whether or not to revive GNUTARGET=elf$(BITS)-$(GNUTARGET) in a *separate* patch, correct? -- Best Regards Masahiro Yamada