All ARM systems define the symbol __image_copy_start which is the
correct relocation base address for secure and non-secure boot.
static int setup_reloc(void)
{
#ifdef CONFIG_SYS_TEXT_BASE
static int setup_reloc(void)
{
#ifdef CONFIG_SYS_TEXT_BASE
-#ifndef CONFIG_SECURE_BOOT
gd->reloc_off = gd->relocaddr - CONFIG_SYS_TEXT_BASE;
#else
gd->reloc_off = gd->relocaddr - (unsigned long)__image_copy_start;
gd->reloc_off = gd->relocaddr - CONFIG_SYS_TEXT_BASE;
#else
gd->reloc_off = gd->relocaddr - (unsigned long)__image_copy_start;