summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-06-12 11:15:03 -0700
committerAndreas Larsson <andreas@gaisler.com>2026-06-15 10:06:07 +0200
commit2416b30ec23fd23126b4747994c00d926d438d6f (patch)
tree27a7ba5ee0f241cd4b7cf2faea76b3f7129906cc /include/linux/debugobjects.h
parent852fed2e8bfe195351fb0078ba7245d41154e7a5 (diff)
sparc: Export mcount for Clang-built modules
Clang emits calls to mcount for -pg on sparc64, while the existing ftrace support only exports the _mcount name. With FUNCTION_TRACER enabled, modules can therefore keep relocations against mcount and fail during modpost: ERROR: modpost: "mcount" [arch/sparc/kernel/chmc.ko] undefined! _mcount and mcount are aliases in arch/sparc/lib/mcount.S. Export the plain mcount alias as well so Clang-built modules can resolve their profiling call target. Assisted-by: Codex:GPT-5 Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions