xtensa: add config option to disable linker relaxation
[deliverable/linux.git] / arch / xtensa / Makefile
index bb5ba61723f73d4feab322008524c3d90801d38b..ab63c9beb93003f3369a9c45cf89bdb5a2e1cffb 100644 (file)
@@ -49,6 +49,10 @@ KBUILD_CFLAGS += -pipe -mlongcalls
 
 KBUILD_CFLAGS += $(call cc-option,-mforce-no-pic,)
 
+ifneq ($(CONFIG_LD_NO_RELAX),)
+LDFLAGS := --no-relax
+endif
+
 vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
 plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
 
This page took 0.025734 seconds and 5 git commands to generate.