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

From: Ingo Molnar
Date: Thu Nov 10 2016 - 04:25:12 EST



* Michal Marek <mmarek@xxxxxxxx> 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 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.
>
> OK, done.

Thanks!

Ingo