Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755729AbcJ2RD5 convert rfc822-to-8bit (ORCPT ); Sat, 29 Oct 2016 13:03:57 -0400 Received: from mout.gmx.net ([212.227.17.20]:63910 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbcJ2RDz (ORCPT ); Sat, 29 Oct 2016 13:03:55 -0400 From: Sven Joachim To: Tomas Janousek Cc: Sebastian Andrzej Siewior , Joe Perches , Adam Borowski , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, ben@decadent.org.uk Subject: Re: [RFC PATCH] kbuild: add -fno-PIE References: <20161021111600.9417-1-bigeasy@linutronix.de> <20161021212127.GA32611@angband.pl> <87eg37niky.fsf@turtle.gmx.de> <1477250598.3561.4.camel@perches.com> <8760oinqly.fsf@turtle.gmx.de> <20161024074332.uomcxyhqo6aq7vxk@linutronix.de> <874m41mz4h.fsf@turtle.gmx.de> <20161029101007.zwqv3lslbzd4urco@nomi.cz> Date: Sat, 29 Oct 2016 19:03:30 +0200 In-Reply-To: <20161029101007.zwqv3lslbzd4urco@nomi.cz> (Tomas Janousek's message of "Sat, 29 Oct 2016 12:10:08 +0200") Message-ID: <87insbnl3x.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:mM+dy1NAP8e/FysSaYffURGUIp2DKtKmyKRV0wUyQfHEpYyMG5B iGacAFCBQ3VSbF9h4E+jkCabNZIOEYwxtNsxZat0tnjzQv6YDdwzunpAcxjsku7zGlUWBoX cUhYmLH3V/ALIlrRPlBZUk62rXFY45Fu1jPRBDF8IUok3J+j8Cz4yWy42uhNmtQ66sm3wDz sUu8ZM+Iujr1wPht3s7+A== X-UI-Out-Filterresults: notjunk:1;V01:K0:sIEfwe1B+rc=:tlDVrQAAAhZ6RVYdoUy0MU x2TOC730cxtAOPjqnxAPE6wj7gzRvELJ/ekUA1hXg+Nx5KTm9lrxaZeSM0cUmCRYO9dubIuVN cdCju3bBjxKw339qyBcEyQRWyXwOw2h7gjykE3GMXb2q7p47CaXGQhcsmvcz3MidmGu7L2Cxx B1DcJiiQD96iRDRqYqb5FFqT4j60Kpu6ptQA8cWE5/UmZoQUOQwgB9nvl0x9QFsa5BZv2SbW9 ZRxzw1jK/W1Nyh9OwT88PUDbHL5xvVEZOFGpLtqDDFk5lyotPQIEzmKeF8ckPKxMFOkw7pcMR DCaYNlabV11/rrroorG9pBy7Y1xY+wPsXAmL6VWenyAEHCDCxDkjKDmykaTxbWqXBCtRHautf 4FLPD2vVmOGdY2w5qwT+Prr586kC5UNko3vyZ0k3pnj6l4xij1d9xUFEi3kcjVwj4hChTg99P gVGXGVD6jzQSvDIFU9IjiLpdw4q96zs0pHZlOP70rSDp0abS5A7XeHSZhx9tLjdYZIm7qu7JZ Md3rT/RwXToRAwSYNBjOBpUvAYElOiBfTrykOTHAbMd1Yk79lhBHgHMsEKu7At9JlZAbIka+6 EBJFYTzJ7TQHkbbtpb+CJ2+vS1wjYVwiDqsjW29WhqdXaKXEwrljX6SLO1RIJmy43MK+qlSM5 pd3TkOYb70nFau+jfuKNuEqAT998MIQeoWMLOw3crqI+8J3nnXlr1KWGVOO5nQQ7Mf249xZ0E RUrxh5zOuG9ZUm5BZtvqqqnzLz2ZrmKmtH7fSHREIkrcEIphwvhRGGPjoNxUSw7ho2E4C+JuU rPepUEf Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 26 On 2016-10-29 12:10 +0200, Tomas Janousek wrote: > On Mon, Oct 24, 2016 at 07:32:30PM +0200, Sven Joachim wrote: >> The attached patch works for me with Debian's gcc-6 package. > > I tried your patch when building 4.8.5 on an up-to-date Debian testing and > still got this: > > AS arch/x86/entry/vdso/vdso32/note.o > arch/x86/entry/vdso/vdso32/note.S:1:0: sorry, unimplemented: -mfentry > isn’t supported for 32-bit in combination with -fpic I cannot reproduce that, FWIW. Also, arch/x86/entry/vdso/Makefile seems to explicitly filter out -mfentry from the compiler flags, but maybe I misunderstand something. Could you please show the exact command that's failing with "make V=1"? > Adding KBUILD_AFLAGS += $(call cc-option,-fno-pie,) helps. > (Maybe that should be as-option instead. Don't know. There are lots of > AFLAGS=$(call cc-option, ...) in the Makefiles, anyway.) This is what Ubuntu is doing, so it works at least for them, I suppose. Cheers, Sven