[U-Boot] [PATCH V2 1/4] ARM: tegra: ensure nvtboot_boot_x0 alignment

Stephen Warren swarren at wwwdotorg.org
Wed Oct 19 23:18:44 CEST 2016


From: Stephen Warren <swarren at nvidia.com>

nvtboot_boot_x0 is a 64-bit variable and hence must be 64-bit aligned.
So far this has happened by accident! Fix the code so this is guaranteed.

This fixes the following build error:
... relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC
    against symbol `nvtboot_boot_x0' ...

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
v2: New patch.
---
 arch/arm/mach-tegra/tegra186/nvtboot_ll.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-tegra/tegra186/nvtboot_ll.S b/arch/arm/mach-tegra/tegra186/nvtboot_ll.S
index 1eab890958c7..899c9cccbe84 100644
--- a/arch/arm/mach-tegra/tegra186/nvtboot_ll.S
+++ b/arch/arm/mach-tegra/tegra186/nvtboot_ll.S
@@ -9,6 +9,7 @@
 #include <config.h>
 #include <linux/linkage.h>
 
+.align 8
 .globl	nvtboot_boot_x0
 nvtboot_boot_x0:
 	.dword 0
-- 
2.10.1



More information about the U-Boot mailing list