Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbcKGWcV (ORCPT ); Mon, 7 Nov 2016 17:32:21 -0500 Received: from terminus.zytor.com ([198.137.202.10]:33276 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752512AbcKGWcQ (ORCPT ); Mon, 7 Nov 2016 17:32:16 -0500 Subject: Re: -fno-PIE, take #3 To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org References: <20161104183940.30692-1-bigeasy@linutronix.de> Cc: Michal Marek , linux-kbuild@vger.kernel.org, x86@kernel.org, Al Viro , Ben Hutchings , Sven Joachim , "Austin S. Hemmelgarn" , Borislav Petkov From: "H. Peter Anvin" Message-ID: <63c356a8-58a3-bc7e-88db-5c8071db15e1@zytor.com> Date: Mon, 7 Nov 2016 14:31:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161104183940.30692-1-bigeasy@linutronix.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 706 Lines: 16 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 (it was introduced in gcc 3.4, min required gcc is > currently 3.2) so it can be backported to the stable kernels. > As noted by Al this won't fix `git bisect' of stable kernels prio this commit. > However using always a wrapper around gcc which adds -fno-PIE is not sollution > I want to rely in future. > > Sebastian > We don't support gcc < 3.4 on x86 platforms; I'm pretty sure it is broken. -hpa