Am 11.09.18 um 11:48 schrieb Stefan G. Weichinger:
Right now I always get this when I run "make bzImage" (
# make bzImage
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
/*
make[1]: *** [Kbuild:44: kernel/bounds.s] Error 1
make: *** [Makefile:990: prepare0] Error 2
Why?
Because the gcc has flags enabled?
I googled but klibc-related stuff doesn't seem to apply here.
I am not insisting on hardened profile but want to avoid bigger issues
when switching profiles without thinking ...
I managed to compile a 4.9.95 after "make localmodconfig". Maybe that
would help with the other kernels as well.