Re: -fno-PIE, take #3

2016-11-08 Thread Ben Hutchings
On Fri, 2016-11-04 at 19:39 +0100, Sebastian Andrzej Siewior wrote: > Debian gcc's is nowdays compiled with --enable-default-pie which means it does > -fPIE by default. This breaks atleast x86-64 compiles. > This is the third attempt to fix it, this time by using runtime detection of > the -fno-PIE

Re: -fno-PIE, take #3

2016-11-08 Thread Borislav Petkov
On Fri, Nov 04, 2016 at 07:39:37PM +0100, Sebastian Andrzej Siewior wrote: > Debian gcc's is nowdays compiled with --enable-default-pie which means it does Ho humm, there it is: $ gcc -### /usr/include/stdlib.h 2>&1 | grep -o -- "--enable-default-pie" --enable-default-pie For all three: Tested-

Re: -fno-PIE, take #3

2016-11-07 Thread H. Peter Anvin
On 11/04/16 11:39, Sebastian Andrzej Siewior wrote: > Debian gcc's is nowdays compiled with --enable-default-pie which means it does > -fPIE by default. This breaks atleast x86-64 compiles. > This is the third attempt to fix it, this time by using runtime detection of > the -fno-PIE compiler switch

Re: -fno-PIE, take #3

2016-11-06 Thread Theodore Ts'o
On Fri, Nov 04, 2016 at 07:39:37PM +0100, Sebastian Andrzej Siewior wrote: > Debian gcc's is nowdays compiled with --enable-default-pie which means it does > -fPIE by default. This breaks atleast x86-64 compiles. > This is the third attempt to fix it, this time by using runtime detection of > the -

-fno-PIE, take #3

2016-11-04 Thread Sebastian Andrzej Siewior
Debian gcc's is nowdays compiled with --enable-default-pie which means it does -fPIE by default. This breaks atleast x86-64 compiles. This is the third attempt to fix it, this time by using runtime detection of the -fno-PIE compiler switch (it was introduced in gcc 3.4, min required gcc is currentl