Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: Add -mforce-no-pic option is supported

GCC is configured to always compile with PIC enabled for the Xtensa
architecture. This fails when nfsroot is enabled as the code uses a
non-conformant segment that mismatches in permissione with a read-only
segment.
A patch has been submitted to GCC to add the machine-option 'force-no-pic'
that disables PIC.

Signed-off-by: Chris Zankel <chris@zankel.net>

+2
+2
arch/xtensa/Makefile
··· 35 35 36 36 KBUILD_CFLAGS += -pipe -mlongcalls 37 37 38 + KBUILD_CFLAGS += $(call cc-option,-mforce-no-pic,) 39 + 38 40 vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) 39 41 plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) 40 42