Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1517787
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3] kbuild: add -fno-PIE |
| Date | 2016-11-09 07:20 +0100 |
| Message-ID | <sBuoN-3AW-1@gated-at.bofh.it> (permalink) |
| References | <szRIR-5sV-3@gated-at.bofh.it> <szRIR-5sV-17@gated-at.bofh.it> <sBmUi-74r-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Michal Marek <mmarek@suse.com> wrote: > On Fri, Nov 04, 2016 at 07:39:38PM +0100, Sebastian Andrzej Siewior wrote: > > Debian started to build the gcc with -fPIE by default so the kernel > > build ends before it starts properly with: > > |kernel/bounds.c:1:0: error: code model kernel does not support PIC mode > > > > Also add to KBUILD_AFLAGS due to: > > > > |gcc -Wp,-MD,arch/x86/entry/vdso/vdso32/.note.o.d … -mfentry -DCC_USING_FENTRY … vdso/vdso32/note.S > > |arch/x86/entry/vdso/vdso32/note.S:1:0: sorry, unimplemented: -mfentry isn’t supported for 32-bit in combination with -fpic > > > > Tagging it stable so it is possible to compile recent stable kernels as > > well. > > > > Cc: stable@vger.kernel.org > > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> > > --- > > Makefile | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Makefile b/Makefile > > index a2650f9c6a25..d61145ebf498 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -622,6 +622,8 @@ include arch/$(SRCARCH)/Makefile > > KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) > > KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) > > KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) > > +KBUILD_CFLAGS += $(call cc-option,-fno-PIE) > > +KBUILD_AFLAGS += $(call cc-option,-fno-PIE) > > Bad compiler. No pie for you. > > I applied this one to kbuild.git. How about 2/3 and 3/3. Will these be > merged via tip.git or shall I apply them as well? I'd suggest applying them to the kbuild tree, as they are related. Thanks, Ingo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
-fno-PIE, take #3 Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
[PATCH 1/3] kbuild: add -fno-PIE Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Michal Marek <mmarek@suse.com> - 2016-11-08 23:20 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Ingo Molnar <mingo@kernel.org> - 2016-11-09 07:20 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Michal Marek <mmarek@suse.com> - 2016-11-09 22:30 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Ingo Molnar <mingo@kernel.org> - 2016-11-10 10:30 +0100
[PATCH 3/3] x86/kexec: add -fno-PIE Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
[PATCH 2/3] scripts/has-stack-protector: add -fno-PIE Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
Re: -fno-PIE, take #3 Theodore Ts'o <tytso@mit.edu> - 2016-11-07 07:40 +0100
Re: -fno-PIE, take #3 "H. Peter Anvin" <hpa@zytor.com> - 2016-11-07 23:40 +0100
Re: -fno-PIE, take #3 Borislav Petkov <bp@alien8.de> - 2016-11-08 14:50 +0100
Re: -fno-PIE, take #3 Ben Hutchings <ben@decadent.org.uk> - 2016-11-09 00:00 +0100
csiph-web