2016-10-22 13:30 GMT+02:00 Gianfranco Costamagna <locutusofb...@debian.org>: > Hi > >>Have you tried upstreaming the patch? It would be a great help. > > > I think message 35 would be the right way to go > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841438#35
I think disabling PIE from GCC for the kernel would interefere with this proposed patch: https://lkml.org/lkml/2016/10/20/141 I think the final solution would be patching to kernel. Kernel upstream is already aware of the situation https://lkml.org/lkml/2016/10/21/904 https://lkml.org/lkml/2016/10/21/351 and Ubuntu users already hit the problem with 16.10, too: https://lkml.org/lkml/2016/10/20/616 Cheers, Balint > G. > > 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 >>