Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2754066ybi; Thu, 18 Jul 2019 13:48:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ4CBhxFsjE3zr3DGruVzFbRHDU2LQ1Y3rjK5Frkr7GQgFgQHRSp7vxiScOpYRAM/3odnN X-Received: by 2002:a17:902:9a06:: with SMTP id v6mr51068675plp.71.1563482892374; Thu, 18 Jul 2019 13:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563482892; cv=none; d=google.com; s=arc-20160816; b=ntbe3OnXCOkA/GPJrzivbi8oBWtwScR/tHNHK5lPC6wEH290hTQHLd+iW6nxrr5QVR 6k1AC4lwvUX73jKAvIGwRbkx0cp3jXeyQIa/UMx7Ed1p3MfAoKLxKNwW97Mwk6E4v3fE dxtFhjx61EOPyqzHIStqUX4fcjf/5gkYgtCrYCqf5lNEIzXdN147JrbB4Xe3or5zJtb3 WdoDP9CIUmfo/k9PHxcDdYmDWmvt3za4sVMFcIqPkd+EaA2mR32xLh9aWeNwpPvbA+FV h5yReC0bW1S0ze/EvQnenQh9Gec4Pl5kjwQb57drzeEeGj4gDhuMqfEd6UktqvOfBtVQ TtGQ== 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; bh=vfP9HJCaFRfRPRL31+cohgLgf6vcMMP1jmPbtcZS7Cs=; b=PFAb/CEIj0jbpFLWf38dGS+Wey6sP+IBwtNkmsJ2r00kxbFarUTupgmH2c3KRtK5sH ibcNVFM1BM9a5HQEJkM97+ZuhfwTgBwdIB6vW89Ucigm5AAzA4l0hsDt8glrAQbhRFt6 4H67BJ6L+Q5OEsEHg4WC9XaxC84ppcLZEcJugRI+LWNc/IekIB966WEyWQrWwujiwCC8 nhRs20KzZRhh6X88pJeUGOmRhltPocx7/Gvr7JEMJE+ACwXKRCenj0ZtXCpjtnmd7bFx w9J6a5aIoCaG9pAmrVfVfYFtP7vE5/eZJpLOhdBYx0XdeRYw82N4IlmThIkGEo4OrWKb Mz9w== 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 w11si198257pgr.321.2019.07.18.13.47.56; Thu, 18 Jul 2019 13:48:12 -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 S2391328AbfGRUq5 (ORCPT + 99 others); Thu, 18 Jul 2019 16:46:57 -0400 Received: from gate.crashing.org ([63.228.1.57]:34474 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbfGRUq5 (ORCPT ); Thu, 18 Jul 2019 16:46:57 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x6IKkXQ7011057; Thu, 18 Jul 2019 15:46:33 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x6IKkVH0011056; Thu, 18 Jul 2019 15:46:31 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 18 Jul 2019 15:46:31 -0500 From: Segher Boessenkool To: Masahiro Yamada Cc: Michael Ellerman , Stephen Rothwell , Linux Kernel Mailing List , Nicholas Piggin , Paul Mackerras , linuxppc-dev Subject: Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition Message-ID: <20190718204631.GV20882@gate.crashing.org> References: <20190713131642.GU14074@gate.crashing.org> <20190713235430.GZ14074@gate.crashing.org> <87v9w393r5.fsf@concordia.ellerman.id.au> <20190715072959.GB20882@gate.crashing.org> <87pnma89ak.fsf@concordia.ellerman.id.au> <20190717143811.GL20882@gate.crashing.org> <20190717164628.GN20882@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Thu, Jul 18, 2019 at 11:19:58AM +0900, Masahiro Yamada wrote: > On Thu, Jul 18, 2019 at 1:46 AM Segher Boessenkool > wrote: > Kbuild always uses thin archives as far as vmlinux is concerned. > > But, there are some other call-sites. > > masahiro@pug:~/ref/linux$ git grep '$(AR)' -- :^Documentation :^tools > arch/powerpc/boot/Makefile: BOOTAR := $(AR) > arch/unicore32/lib/Makefile: $(Q)$(AR) p $(GNU_LIBC_A) $(notdir $@) > $@ > arch/unicore32/lib/Makefile: $(Q)$(AR) p $(GNU_LIBGCC_A) $(notdir $@) > $@ > lib/raid6/test/Makefile: $(AR) cq $@ $^ > scripts/Kbuild.include:ar-option = $(call try-run, $(AR) rc$(1) > "$$TMP",$(1),$(2)) > scripts/Makefile.build: cmd_ar_builtin = rm -f $@; $(AR) > rcSTP$(KBUILD_ARFLAGS) $@ $(real-prereqs) > scripts/Makefile.lib: cmd_ar = rm -f $@; $(AR) > rcsTP$(KBUILD_ARFLAGS) $@ $(real-prereqs) > > Probably, you are interested in arch/powerpc/boot/Makefile. That one seems fine actually. The raid6 one I don't know. My original commit message was Without this, some versions of GNU ar fail to create an archive index if the object files it is packing together are of a different object format than ar's default format (for example, binutils compiled to default to 64-bit, with 32-bit objects). but I cannot reproduce the problem anymore. Shortly after my patch the thin archive code happened to binutils, and that overhauled some other things, which might have fixed it already? > > Yes, I know. This isn't about built-in.[oa], it is about *other* > > archives we at least *used to* create. If we *know* we do not anymore, > > then this workaround can of course be removed (and good riddance). > > If it is not about built-in.[oa], > which archive are you talking about? > > Can you pin-point the one? No, not anymore. Lost in the mists of time, I guess? I think we'll just have to file it as "it seems to work fine now". Thank you (and everyone else) for the time looking at this! Segher