From 206133d42126a3eb151d975288104226f4aca40a Mon Sep 17 00:00:00 2001 From: Chris Zankel Date: Tue, 13 Nov 2012 15:16:36 -0800 Subject: [PATCH] --- yaml --- r: 347239 b: refs/heads/master c: 6550162200b40d1e725167f8a617255c42b57552 h: refs/heads/master i: 347237: 7180739ab7b7bf9098674e5b7dbd6a1218af5971 347235: 8e2fcc0cdbfe9acd2e37ddfa00cb807e6f7649f6 347231: bc80f7c3c788c26ae02fa0373f1529f7684c1ce4 v: v3 --- [refs] | 2 +- trunk/arch/xtensa/Kconfig.debug | 13 +++++++++++-- trunk/arch/xtensa/Makefile | 4 ++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 91eeae8f60ad..79a42264e128 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 02b25d811f949fc70badd6535dfaf13a3c5decf9 +refs/heads/master: 6550162200b40d1e725167f8a617255c42b57552 diff --git a/trunk/arch/xtensa/Kconfig.debug b/trunk/arch/xtensa/Kconfig.debug index 11c585295dd7..be5fb4c6243f 100644 --- a/trunk/arch/xtensa/Kconfig.debug +++ b/trunk/arch/xtensa/Kconfig.debug @@ -2,6 +2,15 @@ menu "Kernel hacking" source "lib/Kconfig.debug" -endmenu - +config LD_NO_RELAX + bool "Disable linker relaxation" + default n + help + Enable this function to disable link-time optimizations. + The default linker behavior is to combine identical literal + values to reduce code size and remove unnecessary overhead from + assembler-generated 'longcall' sequences. + Enabling this option improves the link time but increases the + code size, and possibly execution time. +endmenu diff --git a/trunk/arch/xtensa/Makefile b/trunk/arch/xtensa/Makefile index bb5ba61723f7..ab63c9beb930 100644 --- a/trunk/arch/xtensa/Makefile +++ b/trunk/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))