Dear Ubuntu Developers, Have you tried upstreaming the patch? It would be a great help.
Cheers, Balint 2016-10-20 19:05 GMT+02:00 Gianfranco Costamagna <locutusofb...@debian.org>: > control: severity -1 normal > control: reassign -1 src:linux > control: affects -1 gcc-6 > > Hi Linux Kernel maintainers, > as you already know, the default PIE flag breaks the kernel build, can I > suggest you to apply a similar patch > to the one that Ubuntu appplied some time ago? > https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1574982/comments/39 > > --- a/Makefile > +++ b/Makefile > @@ -612,6 +612,12 @@ endif # $(dot-config) > # Defaults to vmlinux, but the arch makefile usually adds further targets > all: vmlinux > > +# force no-pie for distro compilers that enable pie by default > +KBUILD_CFLAGS += $(call cc-option, -fno-pie) > +KBUILD_CFLAGS += $(call cc-option, -no-pie) > +KBUILD_AFLAGS += $(call cc-option, -fno-pie) > +KBUILD_CPPFLAGS += $(call cc-option, -fno-pie) > + > # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default > # values of the respective KBUILD_* variables > ARCH_CPPFLAGS := > > thanks > > Gianfranco >