]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: page align EFI binary section
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 26 Feb 2024 21:24:07 +0000 (22:24 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 28 Feb 2024 13:39:27 +0000 (14:39 +0100)
Change the alignment of the relocation code in EFI binaries to match page
boundaries.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/lib/crt0_arm_efi.S

index d67ee0c8953a9070daa9778f740cfec6b1df3bdc..b45c034c23cb7ae62a513a37aaf165f07d77d93a 100644 (file)
@@ -119,14 +119,14 @@ section_table:
        .short  0               /* NumberOfLineNumbers  (0 for executables) */
        .long   0xe0500020      /* Characteristics (section flags) */
 
-       .align          9
+       .align          12
 _start:
        stmfd           sp!, {r0-r2, lr}
 
        adr             r1, .L_DYNAMIC
        ldr             r0, [r1]
        add             r1, r0, r1
-       adr             r0, image_base
+       adrl            r0, image_base
        bl              _relocate
        teq             r0, #0
        bne             0f