Re: [PULL for-5.0 07/10] configure: Support -static-pie if requested

2020-03-31 Thread Richard Henderson
On 3/31/20 6:44 AM, Laurent Vivier wrote: >> QEMU_LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -static-pie >> -m64 -fstack-protector-strong ... >> $ file m68k-linux-user/qemu-m68k >> m68k-linux-user/qemu-m68k: ELF 64-bit LSB pie executable, x86-64, >> version 1 (GNU/Linux), dynamically

Re: [PULL for-5.0 07/10] configure: Support -static-pie if requested

2020-03-31 Thread Laurent Vivier
On 31/03/2020 15:34, Laurent Vivier wrote: > On 31/03/2020 05:54, Richard Henderson wrote: >> Recent toolchains support static and pie at the same time. >> >> As with normal dynamic builds, allow --static to default to PIE >> if supported by the toolchain. Allow --enable/--disable-pie to >>

Re: [PULL for-5.0 07/10] configure: Support -static-pie if requested

2020-03-31 Thread Laurent Vivier
On 31/03/2020 05:54, Richard Henderson wrote: > Recent toolchains support static and pie at the same time. > > As with normal dynamic builds, allow --static to default to PIE > if supported by the toolchain. Allow --enable/--disable-pie to > override the default. > > Reviewed-by: Alex Bennée >

[PULL for-5.0 07/10] configure: Support -static-pie if requested

2020-03-30 Thread Richard Henderson
Recent toolchains support static and pie at the same time. As with normal dynamic builds, allow --static to default to PIE if supported by the toolchain. Allow --enable/--disable-pie to override the default. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- v2: Fix --disable-pie