]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Align bss and end of u-boot image to 64bits
authorMichal Simek <michal.simek@amd.com>
Wed, 31 Aug 2022 09:28:59 +0000 (11:28 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
The main reason is that DT memory reserved code is expecting DT to be 64bit
aligned. For more information take a look at commit 5bd5ee02b23b ("xilinx:
zynqmp: Check that DT is 64bit aligned").

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/9f3688cda188d8ea0b462df2aa08a10ddcc9c149.1661938136.git.michal.simek@amd.com
arch/arm/mach-zynq/u-boot.lds

index a5169fd9150ed9c522d6671a679cae82d3dcf5f2..3b7c9d515f8b80d26c1cb7e92b57e3a3c2da4b19 100644 (file)
@@ -75,7 +75,7 @@ SECTIONS
                *(.__efi_runtime_rel_stop)
        }
 
-       . = ALIGN(4);
+       . = ALIGN(8);
        .image_copy_end :
        {
                *(.__image_copy_end)
@@ -114,7 +114,7 @@ SECTIONS
 
        .bss __bss_base (OVERLAY) : {
                *(.bss*)
-                . = ALIGN(4);
+                . = ALIGN(8);
                 __bss_limit = .;
        }