arm: prevent using movt/movw address loads
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sat, 24 Aug 2013 11:55:38 +0000 (13:55 +0200)
committernotaz <notasas@gmail.com>
Sat, 2 Jul 2016 23:52:46 +0000 (02:52 +0300)
commitc8c89b30a9642b71ba258f1de80060d58d6fa90b
treedef3fc637460bb63fb54cf6baf56da3c7331d242
parent2b246d533496d50c8fba1a42882668484e5984ac
arm: prevent using movt/movw address loads

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.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Cc: TigerLiu@viatech.com.cn
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/config.mk