Re: [PATCH 0/2] riscv: vdso: Do not use LTO for the vDSO
From: Nam Cao
Date: Thu Jul 02 2026 - 06:53:38 EST
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx> writes:
> 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>
Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>