소스 검색

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>
Chris Zankel 15 년 전
부모
커밋
cf1c0aaf81
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      arch/xtensa/Makefile

+ 2 - 0
arch/xtensa/Makefile

@@ -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))