diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-06-11 14:17:30 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-06-21 22:59:20 +0200 |
commit | c37980c31a30f0623a0ca8f112298e44039ed6bb (patch) | |
tree | 85af61bd66e05bd9da198f5098ef56f7ebbe34a5 /arch/arm/config.mk | |
parent | 7737c994609ffb50194d5ddb67467ae0fcd8f775 (diff) | |
download | u-boot-c37980c31a30f0623a0ca8f112298e44039ed6bb.tar.gz |
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>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r-- | arch/arm/config.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk index dc64160789..e80e1ed1a3 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -109,3 +109,8 @@ ifeq ($(GAS_BUG_12532),y) PLATFORM_RELFLAGS += -fno-optimize-sibling-calls endif endif + +# check that only R_ARM_RELATIVE relocations are generated +ifneq ($(CONFIG_SPL_BUILD),y) +ALL-y += checkarmreloc +endif |