diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-06-12 11:15:03 -0700 |
|---|---|---|
| committer | Andreas Larsson <andreas@gaisler.com> | 2026-06-15 10:06:07 +0200 |
| commit | 2416b30ec23fd23126b4747994c00d926d438d6f (patch) | |
| tree | 27a7ba5ee0f241cd4b7cf2faea76b3f7129906cc /include/linux/debugobjects.h | |
| parent | 852fed2e8bfe195351fb0078ba7245d41154e7a5 (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
