Created attachment 218461 [details] add only -fno-PIE When gcc 6.1 is configured with --enable-default-pie the kernel fail to compile with a error. HOSTCC arch/x86/tools/relocs_common.o HOSTLD arch/x86/tools/relocs CHK include/generated/timeconst.h CC kernel/bounds.s UPD include/generated/timeconst.h kernel/bounds.c:1:0: error: code model kernel does not support PIC mode Kbuild:44: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 Makefile:1005: recipe for target 'prepare0' failed make: *** [prepare0] Error 2
Created attachment 240691 [details] check and disable -fPIE This check if the compiler default to -fPIE and add -fno-PIE were is needed.