On Sun, Jan 11, 2015 at 1:32 PM, Magnus Granberg <zo...@gentoo.org> wrote: > söndag 11 januari 2015 09.47.09 skrev H.J. Lu: >> On Sun, Jan 11, 2015 at 9:40 AM, H.J. Lu <hjl.to...@gmail.com> wrote: >> > On Sun, Jan 11, 2015 at 6:04 AM, Magnus Granberg <zo...@gentoo.org> wrote: >> >> söndag 11 januari 2015 14.29.56 skrev Magnus Granberg: >> >>> söndag 11 januari 2015 03.37.14 skrev H.J. Lu: >> >>> > On Sun, Jan 11, 2015 at 1:05 AM, Daniel Micay <danielmi...@gmail.com> >> >> >> >> wrote: >> >>> > > On 11/01/15 03:52 AM, Daniel Micay wrote: >> >>> > >> This branch works well for me. It doesn't automatically turn off >> >>> > >> the >> >>> > >> linker flag when -fno-PIE or -fno-PIC are passed like most of the >> >>> > >> wrapper scripts / downstream patches do, but that might not be a >> >>> > >> problem >> >>> > >> in practice. >> >>> > >> >>> > -fno-PIE and -fno-PIC aren't linking options. We don't turn on PIE >> >>> > with >> >>> > >> >>> > # gcc -fPIE .... >> >>> > >> >>> > You need to use >> >>> > >> >>> > # gcc -pie -fPIE >> >>> > >> >>> > To turn off PIE, you should use >> >>> > >> >>> > # gcc -no-pie -fno-PIE >> >>> > >> >>> > > Er, Thunderbird did a terrible job handling my manual reply (wasn't >> >>> > > subscribed to the list). Sorry about that. >> >>> > > >> >>> > > For clarity, this is about H.J. Lu's branch at: >> >>> > > >> >>> > > https://gcc.gnu.org/git/?p=gcc.git;a=shortlog;h=refs/heads/hjl/pie >> >>> >> >>> It works fine for me but 6 test fails in the testsuite. >> >>> Do we realy want to pass -fPIE -fPIC when someone do -fno-PIC or >> >>> -fno-pic? >> >> >> >> On the crtstuff do we and --fPIE or should the Makefile handel it? >> >> I did let the Makefile handel it. >> > >> > I will fix them shortly. >> >> It is fixed now. > > You are missing the fix in gcc/Makefile.in > echo enable_default_pie = '@enable_default_pie@' >> tmp-libgcc.mvars >
I checked in a different fix. Thanks. -- H.J.