Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1511845

Re: [RFC PATCH] kbuild: add -fno-PIE

From Sven Joachim <svenjoac@gmx.de>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] kbuild: add -fno-PIE
Date 2016-10-29 19:10 +0200
Message-ID <sxFiN-VC-21@gated-at.bofh.it> (permalink)
References (3 earlier) <svwCZ-51I-5@gated-at.bofh.it> <svI1s-4up-13@gated-at.bofh.it> <svIb7-4yd-7@gated-at.bofh.it> <svRo6-2jl-33@gated-at.bofh.it> <sxyU2-4R3-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH] kbuild: add -fno-PIE Tomas Janousek <tomi@nomi.cz> - 2016-10-29 12:20 +0200
  Re: [RFC PATCH] kbuild: add -fno-PIE Sven Joachim <svenjoac@gmx.de> - 2016-10-29 19:10 +0200
    Re: [RFC PATCH] kbuild: add -fno-PIE Tomas Janousek <tomi@nomi.cz> - 2016-10-29 21:30 +0200
      Re: [RFC PATCH] kbuild: add -fno-PIE Sven Joachim <svenjoac@gmx.de> - 2016-10-29 23:30 +0200

csiph-web