summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/Makefile
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2012-11-14 00:16:36 +0100
committerChris Zankel <chris@zankel.net>2012-12-19 06:10:20 +0100
commit6550162200b40d1e725167f8a617255c42b57552 (patch)
tree072a99de3ab75fe899254bf75d1a704d91f8916f /arch/xtensa/Makefile
parentxtensa: unbalanced parentheses (diff)
downloadlinux-6550162200b40d1e725167f8a617255c42b57552.tar.xz
linux-6550162200b40d1e725167f8a617255c42b57552.zip
xtensa: add config option to disable linker relaxation
The default linker behavior is to optimize identical literal values and remove unnecessary overhead from assembler-generated "longcall" sequences to reduce code size. Provide an option to disable this behavior to improve compile time. Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r--arch/xtensa/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
index bb5ba61723f7..ab63c9beb930 100644
--- a/arch/xtensa/Makefile
+++ b/arch/xtensa/Makefile
@@ -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))