From nobody Wed Dec 17 08:52:13 2025 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 D05CBEE49A5 for ; Tue, 22 Aug 2023 06:54:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233125AbjHVGyT (ORCPT ); Tue, 22 Aug 2023 02:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233122AbjHVGyN (ORCPT ); Tue, 22 Aug 2023 02:54:13 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6725A130 for ; Mon, 21 Aug 2023 23:54:10 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1bf3a2f4528so29998845ad.2 for ; Mon, 21 Aug 2023 23:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1692687250; x=1693292050; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ve676d4JygpyiEcrPI+SQ2vixWRAfUQkdAIluX+ykhQ=; b=ebGYjVszLeF1umCyRN8bue0FD0Em8Za2f27t/3K0loeow5Jr/tJ/vfHVqXCOxPas/i zK0DIDUsshJfYNZKsHiE6XhuT2GvkXFW01Ah4Jgkh5gxu9taufca8BsoEnZSxNwRjMPo DKDA98HbHpWgAYP2Heckvb4ngKpcFbgYrr+FA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692687250; x=1693292050; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ve676d4JygpyiEcrPI+SQ2vixWRAfUQkdAIluX+ykhQ=; b=Xjv+5AV45AzvUMjYDo4t3s5dOhI4ragPlYEHGQyAxMwAjuf4HfrrWid95zBBKuD3UZ CeTr0/6gHBIBc4kE/L2SyDPDADrTmpZn3/8zCiHyOjpiWSEojYCGHfAtcnZgMLFhfg7/ ei3bczexbD0G+IaFkjbcMqAL1lmO+hTv0jTgpPS+tGeS8S5nLx07drXPNasjPB8G8GA2 6FHfnFmw/0Z63pNw9ckYKKnu8BKZwJbplrXqMaoTFjR+AUWxV5SEnp5q38sdbcdD8Y7r 3ZvzOQqsdyCB857ZXkw4wOdmNan+cVadO8KssatWQAVDv3PMv+6F2Azc5wpgZaV1H9+W xmIQ== X-Gm-Message-State: AOJu0Ywu+kfxCLhOfFj9poWlvT5SWmHCveAhJMJdXcEBPqZDWcprzITD MGbXNKnuLu/TfvVT529PqVMeng== X-Google-Smtp-Source: AGHT+IHyoDY2eU7axzNzBSKrXJY9J7Jjb+Z+v7SE8quHZ+O9dYs3Fz6aKcjheAS9j0V1v5qFdeJknQ== X-Received: by 2002:a17:903:44c:b0:1b9:e81f:fb08 with SMTP id iw12-20020a170903044c00b001b9e81ffb08mr8315927plb.55.1692687249792; Mon, 21 Aug 2023 23:54:09 -0700 (PDT) Received: from localhost ([2620:15c:2d3:205:c79b:9f4c:f1d8:4659]) by smtp.gmail.com with UTF8SMTPSA id u7-20020a170902e80700b001bdd512df9csm8219663plg.74.2023.08.21.23.54.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Aug 2023 23:54:09 -0700 (PDT) From: Denis Nikitin To: linux-kbuild@vger.kernel.org Cc: denik@chromium.org, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] modpost: Skip .llvm.call-graph-profile section check Date: Mon, 21 Aug 2023 23:52:55 -0700 Message-ID: <20230822065256.163660-1-denik@chromium.org> X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" .llvm.call-graph-profile section is added when the kernel is built with profiles (e.g. -fprofile-sample-use=3D). The section holds metadata for symbols beloning to other sections and hence doesn't need modpost checks. This change fixes the kernel build with sample profiles which fails with: "FATAL: modpost: Please add code to calculate addend for this architecture" Signed-off-by: Denis Nikitin Reviewed-by: Nick Desaulniers --- scripts/mod/modpost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index b29b29707f10..64bd13f7199c 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -761,6 +761,7 @@ static const char *const section_white_list[] =3D ".fmt_slot*", /* EZchip */ ".gnu.lto*", ".discard.*", + ".llvm.call-graph-profile", /* call graph */ NULL }; =20 --=20 2.42.0.rc1.204.g551eb34607-goog