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 A439DC433F5 for ; Fri, 15 Apr 2022 15:26:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240157AbiDOP3Z (ORCPT ); Fri, 15 Apr 2022 11:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbiDOP3Z (ORCPT ); Fri, 15 Apr 2022 11:29:25 -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 B3F05D3AE6 for ; Fri, 15 Apr 2022 08:26:53 -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=Hz5FNEpnphtYpSQRcnh47j1ieMWrpR86u3TkigDqer0=; b=SXUai1u4Qb0XBFWQHDel/lqm6q H2qHwLCjvVWYXgZKwy7WcKpySJZy6sd/4UiZLUtwSApub4ZuIPMiGLoBzRTU3opVRiaQmy/Mhz1gh D3jEL8JwOKiIe9lYq28nyoKLydB9zwFLEQasDQrTIf0biQMXplpI6yv5MyFh3uY5TKaC1TwLkes4b 9JLrlWbHnwrz8eB0vo2pSrk/odxsR5AHDkDyKA204+sEZi3lom5F7oSBSwjD0YgS+pAHGxXxn1izv c0AtjhxJXqMlYw9oLQVosDsvmHwTfs1b7PdONTO5y1fbEmNvTEEkm3y5p9/0A2ZlgTDpbuJzfqSfc P/y86ybg==; 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 1nfNqI-005QNg-89; Fri, 15 Apr 2022 15:26:38 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 599809861A3; Fri, 15 Apr 2022 17:26:33 +0200 (CEST) Date: Fri, 15 Apr 2022 17:26:33 +0200 From: Peter Zijlstra To: x86@kernel.org, Josh Poimboeuf Cc: hjl.tools@gmail.com, ndesaulniers@google.com, mbenes@suse.cz, rostedt@goodmis.org, linux-toolchains@vger.kernel.org Subject: Re: The trouble with __weak and objtool got worse Message-ID: <20220415152633.GA2731@worktop.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-toolchains@vger.kernel.org On Fri, Apr 15, 2022 at 01:19:04PM +0200, Peter Zijlstra 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: > > $ gcc -O2 -fcf-protection=none -fno-asynchronous-unwind-tables -Wa,--generate-unused-section-symbols=yes -c foo*.c > as: unrecognized option '--generate-unused-section-symbols=yes' > as: unrecognized option '--generate-unused-section-symbols=yes' Reading so hard... $ gcc -O2 -fcf-protection=none -fno-asynchronous-unwind-tables -Wa,-generate-unused-section-symbols=yes -c foo*.c seems to actually work.