riscv: page align EFI binary section
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 25 Jan 2024 08:38:14 +0000 (09:38 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 29 Jan 2024 10:29:52 +0000 (11:29 +0100)
Change the alignment of the relocation code in EFI binaries to match page
boundaries.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
arch/riscv/lib/crt0_riscv_efi.S

index 793eefd..ffe18fa 100644 (file)
@@ -155,7 +155,7 @@ section_table:
        .short  0               /* NumberOfLineNumbers  (0 for executables) */
        .long   0xe0500020      /* Characteristics (section flags) */
 
-       .align  9
+       .align          12
 _start:
        addi            sp, sp, -(SIZE_LONG * 3)
        SAVE_LONG(a0, 0)