Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp755371pxj; Thu, 10 Jun 2021 11:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz23a2jJjUAM4M9FDB3FmrAAlYQ+vCKvZgOq6uEn3/Nkc5QtDhQIgzfo0gG8GkGIuezF4ZK X-Received: by 2002:a17:906:e104:: with SMTP id gj4mr88531ejb.350.1623351261915; Thu, 10 Jun 2021 11:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623351261; cv=none; d=google.com; s=arc-20160816; b=GzjVRbosO8xrG6L7UqcCWXTF52UzqvkheA/aVgmo8dcWnfFTtL4YMWx4ZvjzFUdnwe ypDdgsXFQjXNW5TXHC5azOxMu8Qnfe7GCYXDB0vbEIyS/Rj7ZdNwMo151h9EQE/0stfN /AjY7fIZz9eWXvC8IGHbYcVDLYbXlFvw/M/YYB/WNVKoRw9j8n8pBMMKZTiFycJGIF2e rHmCjGZqme1ZqKrk5b0yM+OY8jmSX62ET36FxaAB8bbsRxpdq2RmEP8VoPSE7mZgiyCH LOiyPnU4wHFL0c7ggalJEL58cQEdksHOW5gfY1R6rKtb9yV/hE/Xwm4JRWX2l6yGkWnF 8Phg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HfuCeAl5MSl4lisgs4d54ngu4sgiEZWbJvzZFPXnGcA=; b=LfqMLN7J7wiG4PBU2Lo3jNMb2iJv4+jj4sTwkPGWLjtgXoZAYrBUEIIBRplIb8dKrd qcQtPJJXA87ZgVHMd6IDaeNlcOvsQ+d1EmJd4vOB6KAVIOOw7Ryx2bwVWDjuELuiH6m8 +YILOmgcNrYtfpzIuvNPNmCkH3HRhJUkuZ8cnFnNBLWBzIyKh3YI42PKrSjOJokqzUtd EgFFiZg8oMKLUa8tSslY1v2yoD5AbS66WVLJrxyPIBey1k49Co0I0bKVUoP4fv30FYwv 9NtYGHnoLtQkUYSKyP4ukt/rVgyzxwYGf6OeczgpvZF+0q4g1kHM/krAzfa3MpyLU265 47AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="svkIN/o8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si2763531edq.386.2021.06.10.11.53.45; Thu, 10 Jun 2021 11:54:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="svkIN/o8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbhFJSyA (ORCPT + 99 others); Thu, 10 Jun 2021 14:54:00 -0400 Received: from mail-yb1-f182.google.com ([209.85.219.182]:41552 "EHLO mail-yb1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbhFJSxz (ORCPT ); Thu, 10 Jun 2021 14:53:55 -0400 Received: by mail-yb1-f182.google.com with SMTP id q21so734633ybg.8 for ; Thu, 10 Jun 2021 11:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HfuCeAl5MSl4lisgs4d54ngu4sgiEZWbJvzZFPXnGcA=; b=svkIN/o8q6QyD6NGQYF66lgAUSDiyDZ/YRa9v88JiLTRVvXi/9kmo2nPCMSyST0e3R hGteTKQQF2W3PRa9xzbbYYhm/nTJhUXcqZw2+DLPdmrlAethpVLlvZemaJZiuDZ6IKua LuLLoYkVEQ5uMXCiQeVmphF6NX8r+kxX2rVuzXAcRdXcu+PD8hxsHSxLMOFWSFP1vMtI bBVOzEhox8tRx5vAp3NGUzRPGGPRGzxRrF/aU0etRNtKzzDDBPWRuVFfCrULbiUq5GgJ ixysB+vpzjSszn/5LKFkME3AvAG9QXu/EVzjLuaLE4VKcFMBasS2Sy6uJ5QGJ+Vsi38r yBvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HfuCeAl5MSl4lisgs4d54ngu4sgiEZWbJvzZFPXnGcA=; b=JEOR0HkeM7U0gnEsq/2pgRsMKiGc5EtOODIXPvCHnkKfPw9/XYRcyCjyg3LFfYurmY EBL9TSYI41h6tL0HsIvJGEgvoQL9Y/VcWCjl7Wi1VG7oQKtPF20If5RSBRkM6zE78GWW /1XUoCwnFkDayoNdhhx395Ka3ewdasVGvxiMSgsHPOkxppCmNMuL/tkDikxZj/f5Iltn Wgo2BTUmQSrPFUoJ/gpSotCVzEhhAUB0qeeSLfuR0wCVmiQ3mgo7k6iYwerQ+Gkc7nNI Z0hIVx5IR4di7nshwu17vSGZFLvcVMLRj+4G0pJZlGn/HfHez+EvdjdtKOYxrpasWg4p BqIg== X-Gm-Message-State: AOAM5315WAt37SkWTaiek1ysLgNeR67C/lp0Q4DuKhJDePjwFeU2DDa7 yQeC52Kh7FpMJ0di8V2CZwcdhjEeq21Mk5JQtuqTQQ== X-Received: by 2002:a25:7085:: with SMTP id l127mr296805ybc.293.1623351047675; Thu, 10 Jun 2021 11:50:47 -0700 (PDT) MIME-Version: 1.0 References: <20210506193352.719596001@infradead.org> <20210506194157.452881700@infradead.org> In-Reply-To: From: Sami Tolvanen Date: Thu, 10 Jun 2021 11:50:36 -0700 Message-ID: Subject: Re: [PATCH 01/13] objtool: Rewrite hashtable sizing To: Nathan Chancellor Cc: Peter Zijlstra , X86 ML , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , LKML , Nick Desaulniers , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 11:14 AM Nathan Chancellor wrote: > Adding Sami because I am not sure why this patch would have much of an impact > in relation to LTO. https://git.kernel.org/tip/25cf0d8aa2a3 is the patch in > question. It's because LLVM enables -ffunction-sections with LTO, so using .text section size to estimate the reloc hash table size isn't going to be accurate, as confirmed by objtool output with --stats: OBJTOOL vmlinux.o nr_sections: 141481 section_bits: 17 nr_symbols: 215262 symbol_bits: 17 max_reloc: 24850 tot_reloc: 590890 reloc_bits: 10 Sami