diff mbox series

[1/3] ARM: tegra: p2771-0000: enable PIE relocation

Message ID 1585261245-1740-2-git-send-email-tomcwarren3959@gmail.com
State New
Headers show
Series Misc fixes for Tegra | expand

Commit Message

tomcwarren3959 at gmail.com March 26, 2020, 10:20 p.m. UTC
From: Vishruth <vishruthj at nvidia.com>

U-Boot is configured to build as position independent executable. Enable
relocation of RELA section required to work with different load
addresses.

Signed-off-by: Vishruth <vishruthj at nvidia.com>
Signed-off-by: Tom Warren <twarren at nvidia.com>
---
 configs/p2771-0000-000_defconfig | 1 +
 configs/p2771-0000-500_defconfig | 1 +
 2 files changed, 2 insertions(+)

Comments

Peter Robinson March 31, 2020, 10:46 a.m. UTC | #1
> From: Vishruth <vishruthj at nvidia.com>
>
> U-Boot is configured to build as position independent executable. Enable
> relocation of RELA section required to work with different load
> addresses.
>
> Signed-off-by: Vishruth <vishruthj at nvidia.com>
> Signed-off-by: Tom Warren <twarren at nvidia.com>
Tested-by: Peter Robinson <pbrobinson at gmail.com>

Tested on TX1


> ---
>  configs/p2771-0000-000_defconfig | 1 +
>  configs/p2771-0000-500_defconfig | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/configs/p2771-0000-000_defconfig b/configs/p2771-0000-000_defconfig
> index 06f12e2..e347a77 100644
> --- a/configs/p2771-0000-000_defconfig
> +++ b/configs/p2771-0000-000_defconfig
> @@ -36,3 +36,4 @@ CONFIG_TEGRA186_POWER_DOMAIN=y
>  CONFIG_SYS_NS16550=y
>  CONFIG_USB=y
>  CONFIG_DM_USB=y
> +CONFIG_POSITION_INDEPENDENT=y
> diff --git a/configs/p2771-0000-500_defconfig b/configs/p2771-0000-500_defconfig
> index 1a14a92..0803b26 100644
> --- a/configs/p2771-0000-500_defconfig
> +++ b/configs/p2771-0000-500_defconfig
> @@ -36,3 +36,4 @@ CONFIG_TEGRA186_POWER_DOMAIN=y
>  CONFIG_SYS_NS16550=y
>  CONFIG_USB=y
>  CONFIG_DM_USB=y
> +CONFIG_POSITION_INDEPENDENT=y
> --
> 1.8.2.1.610.g562af5b
>
>
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and may contain
> confidential information.  Any unauthorized review, use, disclosure or distribution
> is prohibited.  If you are not the intended recipient, please contact the sender by
> reply email and destroy all copies of the original message.
> -----------------------------------------------------------------------------------
diff mbox series

Patch

diff --git a/configs/p2771-0000-000_defconfig b/configs/p2771-0000-000_defconfig
index 06f12e2..e347a77 100644
--- a/configs/p2771-0000-000_defconfig
+++ b/configs/p2771-0000-000_defconfig
@@ -36,3 +36,4 @@  CONFIG_TEGRA186_POWER_DOMAIN=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_POSITION_INDEPENDENT=y
diff --git a/configs/p2771-0000-500_defconfig b/configs/p2771-0000-500_defconfig
index 1a14a92..0803b26 100644
--- a/configs/p2771-0000-500_defconfig
+++ b/configs/p2771-0000-500_defconfig
@@ -36,3 +36,4 @@  CONFIG_TEGRA186_POWER_DOMAIN=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_POSITION_INDEPENDENT=y