[U-Boot] [PATCH] arm: prevent using movt/movw address loads

TigerLiu at viatech.com.cn TigerLiu at viatech.com.cn
Tue Sep 17 10:01:06 CEST 2013


Hi, experts:
>The movt/movw instruction can be used to hardcode an
>memory location in the instruction itself. The linker
>starts complaining about this if the compiler decides
>to do so: "relocation R_ARM_MOVW_ABS_NC against `a local
>symbol' can not be used" and it is not support by U-boot
>as well. Prevent their use by requiring word relocations.
>This allows u-boot to be build at other optimalization
>levels then -Os.
Would this patch be included in 2013.10 release verion?
So u-boot could be built at other optimalization levels than -Os.

I tested 2013.10-rc2, but still failed to build by -O0 / -O1 etc.

Best wishes,


More information about the U-Boot mailing list