Re: [PATCH] Enable Intel CET in liblto_plugin.so on Intel CET enabled host

2020-04-25 Thread H.J. Lu via Gcc-patches
On Sat, Apr 25, 2020 at 9:29 AM Richard Biener wrote: > > On April 24, 2020 9:31:58 PM GMT+02:00, "H.J. Lu" wrote: > >Since ld is Intel CET enabled on Intel CET enabled host, dlopen fails > >on > >liblto_plugin.so if it isn't Intel CET enabled. Add GCC_CET_HOST_FLAGS > >to cet.m4, use it in

Re: [PATCH] Enable Intel CET in liblto_plugin.so on Intel CET enabled host

2020-04-25 Thread Richard Biener
On April 24, 2020 9:31:58 PM GMT+02:00, "H.J. Lu" wrote: >Since ld is Intel CET enabled on Intel CET enabled host, dlopen fails >on >liblto_plugin.so if it isn't Intel CET enabled. Add GCC_CET_HOST_FLAGS >to cet.m4, use it in libiberty and lto-plugin to always enable Intel >CET in

[PATCH] Enable Intel CET in liblto_plugin.so on Intel CET enabled host

2020-04-24 Thread H.J. Lu via Gcc-patches
Since ld is Intel CET enabled on Intel CET enabled host, dlopen fails on liblto_plugin.so if it isn't Intel CET enabled. Add GCC_CET_HOST_FLAGS to cet.m4, use it in libiberty and lto-plugin to always enable Intel CET in liblto_plugin.so on Intel CET enabled host. On Linux/x86 host, enable Intel