Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -1
+1 -1
arch/xtensa/Kconfig.debug
··· 14 14 15 15 config LD_NO_RELAX 16 16 bool "Disable linker relaxation" 17 - default n 17 + default y 18 18 help 19 19 Enable this function to disable link-time optimizations. 20 20 The default linker behavior is to combine identical literal
+1
arch/xtensa/configs/iss_defconfig
··· 757 757 CONFIG_HAS_IOMEM=y 758 758 CONFIG_HAS_DMA=y 759 759 CONFIG_NLATTR=y 760 + CONFIG_LD_NO_RELAX=y