Skip to content

Commit

Permalink
xtensa: Add -mforce-no-pic option is supported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Zankel committed May 2, 2010
1 parent 8b307f9 commit cf1c0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit cf1c0aa

Please sign in to comment.