From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2F93C7618F for ; Thu, 18 Jul 2019 20:48:38 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2148208C0 for ; Thu, 18 Jul 2019 20:48:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2148208C0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45qR762qx4zDqfH for ; Fri, 19 Jul 2019 06:48:34 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=permerror (mailfrom) smtp.mailfrom=kernel.crashing.org (client-ip=63.228.1.57; helo=gate.crashing.org; envelope-from=segher@kernel.crashing.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45qR4z4zYXzDqfC for ; Fri, 19 Jul 2019 06:46:43 +1000 (AEST) 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 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 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , Linux Kernel Mailing List , Nicholas Piggin , Paul Mackerras , linuxppc-dev Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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