[U-Boot] [PATCH] arm: prevent using movt/movw address loads
TigerLiu at viatech.com.cn
TigerLiu at viatech.com.cn
Tue Sep 17 12:44:19 CEST 2013
Hi, experts:
>-# check that only R_ARM_RELATIVE relocations are generated
> ifneq ($(CONFIG_SPL_BUILD),y)
>-ALL-y += checkarmreloc
>+# Check that only R_ARM_RELATIVE relocations are generated.
>+ALL-y += checkarmreloc
>+# The movt / movw can hardcode 16 bit parts of the addresses in the
>+# instruction. Relocation is not supported for that case, so disable
>+# such usage by requiring word relocations.
>+PLATFORM_CPPFLAGS += $(call cc-option, -mword-relocations)
> endif
Jeroen's patch is very simple.
So, is there any side-effect?
If not, why not add it into 2013.10 release version? :)
Best wishes,
More information about the U-Boot
mailing list