Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp345152pxb; Fri, 15 Apr 2022 00:32:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxU0C7K/qn9C5F4j4CbzdPFhH9hB7d12goRw6fXRZfX0qj4K6RWXL1dcAU0t0+IixYPxfF X-Received: by 2002:a05:6402:845:b0:421:fcb5:55de with SMTP id b5-20020a056402084500b00421fcb555demr2979276edz.124.1650007921605; Fri, 15 Apr 2022 00:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650007921; cv=none; d=google.com; s=arc-20160816; b=adQqOthNnbCb76NmdSsp+0XlzE4NMMCSX53jVSiUHWTPrgSzk0GYVYlisbQBDwIRdl ipzV4CEc7drwIfP2m6u5v5HRxFuFW8CHkOWQqQyUt9QagS6sHBDAiirPF9FsYGrGDL4M RSEmeWHSiFm0B2rXrCYp9tuNHMiQYWNN8XMIG3CDGftNGk+pTVWvNsj0f0dT7lZ+DLgf iBSyA76HgGzEr8n8R/FI0tMsQjOIV43/zde6mhHvgx2LcyvldYEU0tknib5gEDewb1rq CG5mqQVIxNYWwihSvb4sRH0CMpcB8ZTalEkAuC7FpffMfUoqe/9dV/EM2wGbFr6FkA6/ Oo+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oGf+VbZ7yz3JlLWOYZEQS3B62pJulysAHFGQT+Z5RAY=; b=ZRPS2T37kC0cvuzO3KTYEnxnzPNsIWWfr+FBSC/J2U7Oi5hX0ce8+wNSC06TgMN9OW AmptKOXAnVBrxg875rXXEXjVXSp7kT2eKr1vPBEe3d9pxcoSxUf0JbQ6n/gdCW3DS7RF rMyF/vIDy/X4UGF6XDsWvkEyw5t2uwcloD0XCfhv2EDPQQslIBENDxFgUMyRZcaVWBJR NaeazuU18PCBDnpFYfn6bIg3wWs0x7iU0Wma+miu+nWMUmT9sSxNzqkxz04R29h/s2ln ASKGUQGNOPXAETtRIMCwNWdkKqobSZPYWDIoFWkbCBquJOA+6hB89noUmJL82ZGBZy3d 6myg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=S7zzTsi3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id si7-20020a170906cec700b006e7eda96858si497259ejb.1007.2022.04.15.00.31.35; Fri, 15 Apr 2022 00:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=S7zzTsi3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237421AbiDNIQY (ORCPT + 99 others); Thu, 14 Apr 2022 04:16:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233344AbiDNIQW (ORCPT ); Thu, 14 Apr 2022 04:16:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB5C852E74 for ; Thu, 14 Apr 2022 01:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=oGf+VbZ7yz3JlLWOYZEQS3B62pJulysAHFGQT+Z5RAY=; b=S7zzTsi3b4dZBkzKksT8VSkjbR NrhtcX/Sc/iafRhh7skLhzk7yQl3QJ7gud/Ykiv1IuxpvGZPdG53WIcdvi4xjzX5dW7ApMYrsNkjU TPTPwqfmG5FRUYIGxU4D+489ZRSc0N6a+XTTJ5BZj+b5YB9Wqivzc2cDq8PBWzk8/MZKfWLfet2wa TunF5XGg6GSIqcjLZUG5SfEzquACF2zJRJAUxejStj/PPnlF0JiGU3dewG7kqaRoKH2Yy81Ll3QUK HiRHb07XOczee5OIIVJxacRdMylrn3jmd/40I1U1iMvF/inHIudD0JEy5geIiCh7xyV2ZJxeAxEL9 vAdcCw/w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1neubw-00ExC7-Cj; Thu, 14 Apr 2022 08:13:52 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8C4393000E3; Thu, 14 Apr 2022 10:13:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 758AE2C5BC384; Thu, 14 Apr 2022 10:13:50 +0200 (CEST) Date: Thu, 14 Apr 2022 10:13:50 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Miroslav Benes Subject: Re: [PATCH 17/18] objtool: Remove --lto and --vmlinux Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 13, 2022 at 04:19:52PM -0700, Josh Poimboeuf wrote: > @@ -131,6 +131,12 @@ static inline u32 reloc_hash(struct reloc *reloc) > return sec_offset_hash(reloc->sec, reloc->offset); > } > > +/* is it a whole archive (vmlinux.o or module)? */ > +static inline bool is_linked_object(struct elf *elf) > +{ > + return elf->num_files > 1; > +} > + > struct elf *elf_open_read(const char *name, int flags); > struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t entsize, int nr); Ooh, nice... yes, that was the entire point of --lto.