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

Nathan Chancellor nathan at kernel.org
Tue Jul 7 10:45:13 PDT 2026


On Wed, Jul 01, 2026 at 11:21:21AM +0200, Thomas Weißschuh wrote:
> 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 at linutronix.de>
> ---
> Thomas Weißschuh (2):
>       riscv: vdso: Do not use LTO for the vDSO
>       riscv: vdso: Simplify cflags remove logic

Reviewed-by: Nathan Chancellor <nathan at kernel.org>

-- 
Cheers,
Nathan



More information about the linux-riscv mailing list