Browse Source

arm64: Enable INIT_SP_RELATIVE by default when POC is enabled

When position-independent pre-relocation code is enable there is also
necessary to enable relative early stack pointer not to use origin location
pointed by CONFIG_SYS_INIT_SP_ADDR macro.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek 4 years ago
parent
commit
f071cdab85
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/arm/Kconfig

+ 1 - 0
arch/arm/Kconfig

@@ -12,6 +12,7 @@ config ARM64
 if ARM64
 config POSITION_INDEPENDENT
 	bool "Generate position-independent pre-relocation code"
+	select INIT_SP_RELATIVE
 	help
 	  U-Boot expects to be linked to a specific hard-coded address, and to
 	  be loaded to and run from that address. This option lifts that