Re: [PATCH v4 4/5] configure,meson: support Control-Flow Integrity

2020-12-14 Thread Paolo Bonzini
On 13/12/20 03:55, Alexander Bulekov wrote: Hi Daniele, I think it would be nice to have a separate block for get_option('d_lto'). Unless I missed something, right now --enable-lto --disable-cfi builds don't actually use lto. Meson handles b_lto internally, it should work. Paolo

Re: [PATCH v4 4/5] configure,meson: support Control-Flow Integrity

2020-12-14 Thread Paolo Bonzini
On 05/12/20 00:06, Daniele Buono wrote: +option('cfi', type: 'feature', value: 'auto', + description: 'Control-Flow Integrity (CFI)') +option('cfi_debug', type: 'feature', value: 'auto', + description: 'Verbose errors in case of CFI violation') I'm changing these to value: 'disabled

Re: [PATCH v4 4/5] configure,meson: support Control-Flow Integrity

2020-12-12 Thread Alexander Bulekov
On 201204 1806, Daniele Buono wrote: > This patch adds a flag to enable/disable control flow integrity checks > on indirect function calls. > This feature only allows indirect function calls at runtime to functions > with compatible signatures. > > This feature is only provided by LLVM/Clang, and

[PATCH v4 4/5] configure,meson: support Control-Flow Integrity

2020-12-04 Thread Daniele Buono
This patch adds a flag to enable/disable control flow integrity checks on indirect function calls. This feature only allows indirect function calls at runtime to functions with compatible signatures. This feature is only provided by LLVM/Clang, and depends on link-time optimization which is curren