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 8D2DEC433EF for ; Sat, 16 Apr 2022 10:50:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbiDPKwv (ORCPT ); Sat, 16 Apr 2022 06:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231509AbiDPKwu (ORCPT ); Sat, 16 Apr 2022 06:52:50 -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 94DF33A18C for ; Sat, 16 Apr 2022 03:50:18 -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=4eot77bxTYfFsa6JPgcrLHeFlPFSY4n2Z2cBmuOXQns=; b=coqrHFq90Y4xMg9udRxTGACC6s CLcSsJNedFL8rf0lUtAGh2YcIrYDbnpQ9B2shr3FpvvnYYFmV0GGGxJS9sYlm9N7jYacj+rTmwpvb CBYXsxotZ3DhzMHeUB54LdMzlNE9zAAUW2euMQIhun7dcGnIjPgRf4tiXwsVOd5tZjgf+vdKtvWCe sJtHOw7IRB/aaIykUyOYIq4hYs8O7F2+xiSHKNkdfkQNjOh3UeT1GBvx+GiB1HqiI4803bDnts2Sa Yhbkzqbt4VbIj7e82/gHEiyhQFMbez4NZNSF01Ibqj40CTOUIDHkRv42vZ2u4zOPAZVTnde4W71Pa DZ2LBbig==; 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 1nffzy-005laB-SZ; Sat, 16 Apr 2022 10:49:51 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 3FCF19861A3; Sat, 16 Apr 2022 12:49:49 +0200 (CEST) Date: Sat, 16 Apr 2022 12:49:49 +0200 From: Peter Zijlstra To: Nick Desaulniers Cc: Josh Poimboeuf , x86@kernel.org, hjl.tools@gmail.com, mbenes@suse.cz, rostedt@goodmis.org, linux-toolchains@vger.kernel.org, clang-built-linux , Fangrui Song , Segher Boessenkool Subject: Re: The trouble with __weak and objtool got worse Message-ID: <20220416104949.GD2731@worktop.programming.kicks-ass.net> References: <20220415152633.GA2731@worktop.programming.kicks-ass.net> <20220415182130.iltk2uxnubeaa4nk@treble> 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:36:12PM -0700, Nick Desaulniers wrote: > FWIW, I found this note that retaining STT_SECTION will have adverse > binary size effects for LTO. > https://reviews.llvm.org/D93783#2470728 > Perhaps food for thought here. LTO doesn't suffer this problem since then we run objtool after linking and it never sees the weak stuff to get confused about.