From 5adfb00f7abda1dade1e43238bfcab978f6075ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Thu, 16 Jul 2015 13:29:09 +0200 Subject: [PATCH] common/board_f.c: fix condition for reloc_off assignment All ARM systems define the symbol __image_copy_start which is the correct relocation base address for secure and non-secure boot. --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 8e8e2177a1..c172ea1acb 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -739,7 +739,7 @@ static int reloc_fdt(void) static int setup_reloc(void) { #ifdef CONFIG_SYS_TEXT_BASE -#ifndef CONFIG_SECURE_BOOT +#ifndef CONFIG_ARM gd->reloc_off = gd->relocaddr - CONFIG_SYS_TEXT_BASE; #else gd->reloc_off = gd->relocaddr - (unsigned long)__image_copy_start; -- 2.39.2