diff mbox series

arm64: Enable INIT_SP_RELATIVE by default when POC is enabled

Message ID 6a5fc7151170fd9122feef4affebfc89c9b8c763.1576838578.git.michal.simek@xilinx.com
State Accepted
Commit f071cdab85fbcb9d696fc574485546a1189f452a
Delegated to: Michal Simek
Headers show
Series arm64: Enable INIT_SP_RELATIVE by default when POC is enabled | expand

Commit Message

Michal Simek Dec. 20, 2019, 10:43 a.m. UTC
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>
---

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Michal Simek Jan. 16, 2020, 7:30 a.m. UTC | #1
pá 20. 12. 2019 v 11:43 odesílatel Michal Simek
<michal.simek@xilinx.com> napsal:
>
> 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>
> ---
>
>  arch/arm/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index f9dab073ea14..07746de69c46 100644
> --- a/arch/arm/Kconfig
> +++ b/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
> --
> 2.24.0
>

Applied.
M
diff mbox series

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f9dab073ea14..07746de69c46 100644
--- a/arch/arm/Kconfig
+++ b/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