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

From: Nathan Chancellor

Date: Tue Jul 07 2026 - 13:48:07 EST


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@xxxxxxxxxxxxx>
> ---
> Thomas Weißschuh (2):
> riscv: vdso: Do not use LTO for the vDSO
> riscv: vdso: Simplify cflags remove logic

Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>

--
Cheers,
Nathan