Re: [PATCH v2 26/28] x86, vdso: disable LTO only for vDSO

From: Kees Cook
Date: Thu Sep 03 2020 - 18:46:21 EST


On Thu, Sep 03, 2020 at 01:30:51PM -0700, Sami Tolvanen wrote:
> Remove the undefined DISABLE_LTO flag from the vDSO, and filter out
> CC_FLAGS_LTO flags instead where needed. Note that while we could use
> Clang's LTO for the 64-bit vDSO, it won't add noticeable benefit for
> the small amount of C code.
>
> Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>

Moar DISABLE_LTO...

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook