Re: [PATCH v7 15/17] KVM: arm64: disable LTO for the nVHE directory

2020-11-23 Thread Sami Tolvanen
On Mon, Nov 23, 2020 at 2:21 AM David Brazdil wrote: > > Hey Sami, > > On Wed, Nov 18, 2020 at 02:07:29PM -0800, Sami Tolvanen wrote: > > We use objcopy to manipulate ELF binaries for the nVHE code, > > which fails with LTO as the compiler produces LLVM bitcode > > instead. Disable LTO for this

Re: [PATCH v7 15/17] KVM: arm64: disable LTO for the nVHE directory

2020-11-23 Thread David Brazdil
Hey Sami, On Wed, Nov 18, 2020 at 02:07:29PM -0800, Sami Tolvanen wrote: > We use objcopy to manipulate ELF binaries for the nVHE code, > which fails with LTO as the compiler produces LLVM bitcode > instead. Disable LTO for this code to allow objcopy to be used. We now partially link the nVHE

[PATCH v7 15/17] KVM: arm64: disable LTO for the nVHE directory

2020-11-18 Thread Sami Tolvanen
We use objcopy to manipulate ELF binaries for the nVHE code, which fails with LTO as the compiler produces LLVM bitcode instead. Disable LTO for this code to allow objcopy to be used. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/kvm/hyp/nvhe/Makefile | 4 ++-- 1 file