diff options
| author | Masahiro Yamada <[email protected]> | 2025-01-31 14:04:01 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2025-01-31 19:28:05 +0000 |
| commit | 695ed93bb30e03e9f826ee70abdd83f970741a37 (patch) | |
| tree | 3ded5ccff06562c0f0414e8215c0185b238a067a /scripts/gcc-plugins/sancov_plugin.c | |
| parent | kbuild: Strip runtime const RELA sections correctly (diff) | |
| download | kernel-695ed93bb30e03e9f826ee70abdd83f970741a37.tar.gz kernel-695ed93bb30e03e9f826ee70abdd83f970741a37.zip | |
kbuild: fix Clang LTO with CONFIG_OBJTOOL=n
Since commit bede169618c6 ("kbuild: enable objtool for *.mod.o and
additional kernel objects"), Clang LTO builds do not perform any
optimizations when CONFIG_OBJTOOL is disabled (e.g., for ARCH=arm64).
This is because every LLVM bitcode file is immediately converted to
ELF format before the object files are linked together.
This commit fixes the breakage.
Fixes: bede169618c6 ("kbuild: enable objtool for *.mod.o and additional kernel objects")
Reported-by: Yonghong Song <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Tested-by: Yonghong Song <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
