Re: [PATCH 1/3] kbuild: add -fno-PIE flag unconditionally

2018-12-14 Thread Nick Desaulniers
On Fri, Dec 14, 2018 at 12:06 AM Masahiro Yamada wrote: > > This flag is documented in the GCC 4.6 manual, and recognized by > Clang as well. Let's rip off the cc-option switch. The oldest GCC build that godbolt has (4.1) even recognizes it. https://godbolt.org/z/buDBUr Reviewed-by: Nick

[PATCH 1/3] kbuild: add -fno-PIE flag unconditionally

2018-12-14 Thread Masahiro Yamada
This flag is documented in the GCC 4.6 manual, and recognized by Clang as well. Let's rip off the cc-option switch. Signed-off-by: Masahiro Yamada --- Makefile | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f2c3423..3bbc16a 100644 ---

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-10 Thread Ingo Molnar
* Michal Marek wrote: > >>> +++ 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

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-10 Thread Ingo Molnar
* Michal Marek wrote: > >>> +++ 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

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-09 Thread Michal Marek
Dne 9.11.2016 v 07:10 Ingo Molnar napsal(a): > > * Michal Marek 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: >>>

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-09 Thread Michal Marek
Dne 9.11.2016 v 07:10 Ingo Molnar napsal(a): > > * Michal Marek 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:

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-08 Thread Ingo Molnar
* Michal Marek 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

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-08 Thread Ingo Molnar
* Michal Marek 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

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-08 Thread Michal Marek
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

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-08 Thread Michal Marek
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

[PATCH 1/3] kbuild: add -fno-PIE

2016-11-04 Thread Sebastian Andrzej Siewior
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

[PATCH 1/3] kbuild: add -fno-PIE

2016-11-04 Thread Sebastian Andrzej Siewior
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