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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D10BC433EF for ; Sat, 16 Apr 2022 11:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231663AbiDPLMA (ORCPT ); Sat, 16 Apr 2022 07:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbiDPLMA (ORCPT ); Sat, 16 Apr 2022 07:12:00 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A04A9951 for ; Sat, 16 Apr 2022 04:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=aoEZgB5UbqRV7pKxxVqPksX3/gzHwKNNWFQ7eosZE4Y=; b=Xru4V7A2eXYXo2ZsFaIPYy6/Gv SGNrGTn8SH5WPRKOGL1sJZugxr28jDL0iWjAMKDQCmwKntSZGDaxTKLqbYoFe+KmAVVDGrl03fMFs JKMjZaLBIZZahXVFRZ7C1X4pCr2Ntvw2TAF7zpZs4kPZvMHBiWqgP61j0rhvV5uTiX8j6vuslQSZ4 Nqx77JkwjBwj8uKizbjqiZYJ8k3IJhyZu8kaQct0nDvCuRJs1pJp88yUiLk495i8kJy5Ib+5ZEtLA r/ByINCYMSuVSauLWsqKKi+6RdqcYhqi9jtVLycn5vPxxbTgsaPnjYz4LfYZIhfpoQpKFwbPvfv/I 3HnoiyIg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfgIg-005mCu-Ep; Sat, 16 Apr 2022 11:09:10 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 0ADD39861A3; Sat, 16 Apr 2022 13:09:10 +0200 (CEST) Date: Sat, 16 Apr 2022 13:09:09 +0200 From: Peter Zijlstra To: Segher Boessenkool Cc: Nick Desaulniers , hjl.tools@gmail.com, x86@kernel.org, Josh Poimboeuf , mbenes@suse.cz, rostedt@goodmis.org, linux-toolchains@vger.kernel.org, Fangrui Song Subject: Re: The trouble with __weak and objtool got worse Message-ID: <20220416110909.GF2731@worktop.programming.kicks-ass.net> References: <20220415182229.GB25951@gate.crashing.org> <20220415200714.GC25951@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220415200714.GC25951@gate.crashing.org> Precedence: bulk List-ID: X-Mailing-List: linux-toolchains@vger.kernel.org On Fri, Apr 15, 2022 at 03:07:14PM -0500, Segher Boessenkool wrote: > On Fri, Apr 15, 2022 at 11:36:32AM -0700, Nick Desaulniers wrote: > > On Fri, Apr 15, 2022 at 11:27 AM Segher Boessenkool > > wrote: > > > > > > > Alternatively: > > > > > > > > https://sourceware.org/pipermail/binutils/2020-December/114671.html > > > > > > > > seems to suggest: -Wa,--generate-unused-section-symbols=yes, ought to > > > > work, except I'm getting: > > > > > > That email is for a proposed patch. Did anything further ever happen > > > with it? > > > > $ gcc hello.c -Wa,--generate-unused-section-symbols=yes > > as: unrecognized option '--generate-unused-section-symbols=yes' > > $ gcc hello.c -Wa,-generate-unused-section-symbols=yes > > $ gcc --version > > gcc (Debian 11.2.0-16) 11.2.0 > > > > Uh, the email says -- prefix, but reality shows a single prefix? What > > happened there? Maybe that link is to an earlier version than what > > landed? > > Neither has landed. You get the -g option, which can take options of > itself, parsed by the target or file format code. "as -gobbledygook" > works fine as well :-) Urgh :-/