diff options
author | Chris Zankel <chris@zankel.net> | 2014-12-16 00:22:21 -0500 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2014-12-16 02:47:24 -0500 |
commit | 1f2fdbd0078cb2ad4251768e8c0e0bb652a2cbd6 (patch) | |
tree | 16373284625d37904c78eb861388316035f57db2 | |
parent | 4255a8e199a00faa29b84c47ad57427dd1412581 (diff) |
xtensa: disable link optimization
The default linker behavior is to optimize identical literal values
and remove unnecessary overhead. However, because of a bug in the
linker, this currently results in an error ('call target out of range').
Disable link-time optimizations per default until there is a fix
for the linker and add the option to iss_defconfig.
Signed-off-by: Chris Zankel <chris@zankel.net>
-rw-r--r-- | arch/xtensa/Kconfig.debug | 2 | ||||
-rw-r--r-- | arch/xtensa/configs/iss_defconfig | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/xtensa/Kconfig.debug b/arch/xtensa/Kconfig.debug index 53ae08eef86d..8430af27de0a 100644 --- a/arch/xtensa/Kconfig.debug +++ b/arch/xtensa/Kconfig.debug | |||
@@ -14,7 +14,7 @@ config DEBUG_TLB_SANITY | |||
14 | 14 | ||
15 | config LD_NO_RELAX | 15 | config LD_NO_RELAX |
16 | bool "Disable linker relaxation" | 16 | bool "Disable linker relaxation" |
17 | default n | 17 | default y |
18 | help | 18 | help |
19 | Enable this function to disable link-time optimizations. | 19 | Enable this function to disable link-time optimizations. |
20 | The default linker behavior is to combine identical literal | 20 | The default linker behavior is to combine identical literal |
diff --git a/arch/xtensa/configs/iss_defconfig b/arch/xtensa/configs/iss_defconfig index 6a7593b6784d..e4d193e7a300 100644 --- a/arch/xtensa/configs/iss_defconfig +++ b/arch/xtensa/configs/iss_defconfig | |||
@@ -757,3 +757,4 @@ CONFIG_GENERIC_FIND_LAST_BIT=y | |||
757 | CONFIG_HAS_IOMEM=y | 757 | CONFIG_HAS_IOMEM=y |
758 | CONFIG_HAS_DMA=y | 758 | CONFIG_HAS_DMA=y |
759 | CONFIG_NLATTR=y | 759 | CONFIG_NLATTR=y |
760 | CONFIG_LD_NO_RELAX=y | ||