[PATCH 0/2] riscv: vdso: Do not use LTO for the vDSO
Nam Cao
namcao at linutronix.de
Thu Jul 2 02:38:26 PDT 2026
Thomas Weißschuh <thomas.weissschuh at linutronix.de> 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 at linutronix.de>
Reviewed-by: Nam Cao <namcao at linutronix.de>
More information about the linux-riscv
mailing list