xtensa: Add -mforce-no-pic option is supported
authorChris Zankel <chris@zankel.net>
Sun, 2 May 2010 08:00:22 +0000 (01:00 -0700)
committerChris Zankel <chris@zankel.net>
Sun, 2 May 2010 08:00:22 +0000 (01:00 -0700)
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>
arch/xtensa/Makefile

index 4caffac3ca2e7d3805bb6d1b8fd11b53bdc544d0..7608559de93aa647acfb6c8c877fb03208512b83 100644 (file)
@@ -35,6 +35,8 @@ KBUILD_CFLAGS += -ffreestanding
 
 KBUILD_CFLAGS += -pipe -mlongcalls
 
+KBUILD_CFLAGS += $(call cc-option,-mforce-no-pic,)
+
 vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
 plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
 
This page took 0.024614 seconds and 5 git commands to generate.