diff options
author | Chris Zankel <chris@zankel.net> | 2010-05-02 04:00:22 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2010-05-02 04:00:22 -0400 |
commit | cf1c0aaf816ecc90106d997c0af3f7cdde6c2a71 (patch) | |
tree | 01675289e91831767de41522dbecbc8b807a2e6a /arch | |
parent | 8b307f9c471c7d198070227be26007258b43140e (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 4caffac3ca2e..7608559de93a 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -35,6 +35,8 @@ KBUILD_CFLAGS += -ffreestanding | |||
35 | 35 | ||
36 | KBUILD_CFLAGS += -pipe -mlongcalls | 36 | KBUILD_CFLAGS += -pipe -mlongcalls |
37 | 37 | ||
38 | KBUILD_CFLAGS += $(call cc-option,-mforce-no-pic,) | ||
39 | |||
38 | vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) | 40 | vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) |
39 | plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) | 41 | plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) |
40 | 42 | ||