arm: ensure u-boot only uses relative relocations
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 11 Jun 2013 12:17:30 +0000 (14:17 +0200)
committernotaz <notasas@gmail.com>
Sat, 2 Jul 2016 23:52:46 +0000 (02:52 +0300)
commit2b246d533496d50c8fba1a42882668484e5984ac
tree22bfc8f2074378b3b7cedeeb7712e7b3a5c479ca
parentcbe31ae3c538d9ce9a9710b11e108f2681f4e87e
arm: ensure u-boot only uses relative relocations

Add a Makefile target ('checkarmreloc') which
fails if the ELF binary contains relocation records
of types other than R_ARM_RELATIVE.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Tested-by: Lubomir Popov <lpopov@mm-sol.com>
Tested-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Makefile
arch/arm/config.mk