mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] modpost: Skip .llvm.call-graph-profile section check
@ 2023-08-22  6:52 Denis Nikitin
  2023-08-22  7:05 ` Fangrui Song
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Denis Nikitin @ 2023-08-22  6:52 UTC (permalink / raw)
  To: linux-kbuild
  Cc: denik, Masahiro Yamada, Nathan Chancellor, Nick Desaulniers,
	Nicolas Schier, Tom Rix, linux-kernel, llvm

.llvm.call-graph-profile section is added when the kernel is built with
profiles (e.g. -fprofile-sample-use=<llvm.profile>). 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 <denik@chromium.org>
---
 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[] =
 	".fmt_slot*",			/* EZchip */
 	".gnu.lto*",
 	".discard.*",
+	".llvm.call-graph-profile",	/* call graph */
 	NULL
 };
 
-- 
2.42.0.rc1.204.g551eb34607-goog


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-08-29 13:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22  6:52 [PATCH] modpost: Skip .llvm.call-graph-profile section check Denis Nikitin
2023-08-22  7:05 ` Fangrui Song
2023-08-22 17:17   ` Denis Nikitin
2023-08-22 15:47 ` Nick Desaulniers
2023-08-22 17:21   ` Denis Nikitin
2023-08-22 17:48 ` [PATCH v2] " Denis Nikitin
2023-08-22 17:51   ` Fangrui Song
2023-08-23 23:01     ` Masahiro Yamada
2023-08-23 23:12       ` Denis Nikitin
2023-08-23 23:54         ` Fangrui Song
2023-08-24 23:09           ` Masahiro Yamada
2023-08-25  6:42             ` Denis Nikitin
2023-08-24  1:34         ` Masahiro Yamada
2023-08-24  6:13           ` Fangrui Song
2023-08-25  7:27 ` [PATCH v3] " Denis Nikitin
2023-08-29 13:17   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®