Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3083187ybi; Thu, 18 Jul 2019 20:40:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtCnA2YX9X7QeHAQc9JchK8wZrOS8PvPSxCi1jZbUcweRlifLZ0sMWtk3bV6OW+1SuGjGe X-Received: by 2002:a17:90a:5884:: with SMTP id j4mr57115539pji.142.1563507623650; Thu, 18 Jul 2019 20:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563507623; cv=none; d=google.com; s=arc-20160816; b=gaXch5uVlYnCRIwVD1TkjiDQcRNCueZCo75iwv0Kah/5PBJCnz4Z9+uwQ7y7QkcCiV XQ8pKHWoC8m4g88p5VOvWddstUcDSIoF7ZiKXYOAk8nLJb7gredhi0kQqztrZiaPFhX1 LiicVhKhtp2e2FFJOpokV+JEYCR99BXhgRumV6JgG0dxFU/Ccy1/RFFgtVcArG/cg8Ri yv2weWbZerfvMCdPoWoEW2dMc6B8z2NFNdxjhfAuDlT9vT3kQkoynepohz5fPdskP9sj NOCq9826lEPyn5m8I7UOCMUsnnL6qViEKYN/PDt0W0u23zRha1XJF/OEIswlmylYGCSt jPnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=JCpeSVcI1HvmF7liQRKGKbLPuJyv8SZiugNkvgUrEBQ=; b=Ps5Gb8/nDwwOeaTSc+Y7JqhcTHiSbFynZWTGInqF4MqiHdfPZKYmDS/uRnymUQLXT2 0AWIOol0WbVDHK5zdiQaAlvMoknoRcZaoepGA1pdxSMqBO8WsOtE+nQaN3zWkyIbdU2s CcyYlIofpip/XgR6PyHxcp0zUZLdnF0T0/xxKusfxR89NOT3df663JOKw3wZ/F3Pq93F sfJTyuHhN2Tem/qutbGRN09J8bGPDfkGZVoHfKfideS6qBQwSIvhpl5Js6ndRUazI2F6 O56q4/HLR/SNFQTP6JbDbKo98Xhs07CTeUgGXNkcZAR0prQ5dVuRRg0ookJJnHxbZXee xz+A== 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 f25si3710330pfd.157.2019.07.18.20.40.07; Thu, 18 Jul 2019 20:40:23 -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 S1726572AbfGSDjL (ORCPT + 99 others); Thu, 18 Jul 2019 23:39:11 -0400 Received: from ozlabs.org ([203.11.71.1]:35999 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfGSDjL (ORCPT ); Thu, 18 Jul 2019 23:39:11 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45qcDr4nkfz9s00; Fri, 19 Jul 2019 13:39:08 +1000 (AEST) From: Michael Ellerman To: Segher Boessenkool , Masahiro Yamada Cc: Stephen Rothwell , Linux Kernel Mailing List , Nicholas Piggin , Paul Mackerras , linuxppc-dev Subject: Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition In-Reply-To: <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> <20190718204631.GV20882@gate.crashing.org> Date: Fri, 19 Jul 2019 13:39:08 +1000 Message-ID: <87blxq8zhf.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Segher Boessenkool writes: > 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". Yeah I think so. If someone finds a case it breaks we can fix it then. > Thank you (and everyone else) for the time looking at this! Likewise. cheers