[PATCH 0/2] riscv: vdso: Do not use LTO for the vDSO

From: Thomas Weißschuh

Date: Wed Jul 01 2026 - 05:21:43 EST


With LTO enabled the compiler assumes that the vDSO functions are not
used and optimizes them away completely.

Disable LTO for the vDSO, as these functions are hand-optimized anyways.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
Thomas Weißschuh (2):
riscv: vdso: Do not use LTO for the vDSO
riscv: vdso: Simplify cflags remove logic

arch/riscv/kernel/vdso/Makefile | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260630-riscv-vdso-lto-2a5c6f021162

Best regards,
--
Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@xxxxxxxxxxxxx>