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

2020-09-03 Thread Kees Cook
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

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

2020-09-03 Thread Sami Tolvanen
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 ---