From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965500AbcKDSk2 (ORCPT ); Fri, 4 Nov 2016 14:40:28 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42143 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965403AbcKDSjv (ORCPT ); Fri, 4 Nov 2016 14:39:51 -0400 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: Michal Marek , linux-kbuild@vger.kernel.org, x86@kernel.org, Al Viro , Ben Hutchings , Sven Joachim , "Austin S. Hemmelgarn" , Borislav Petkov Subject: -fno-PIE, take #3 Date: Fri, 4 Nov 2016 19:39:37 +0100 Message-Id: <20161104183940.30692-1-bigeasy@linutronix.de> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Debian gcc's is nowdays compiled with --enable-default-pie which means it d= oes -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 gc= c 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 comm= it. However using always a wrapper around gcc which adds -fno-PIE is not sollut= ion I want to rely in future. Sebastian