summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-25 09:38:14 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-29 11:29:52 +0100
commita5c3c1ba8af8b1077e08ee4c8d1374a99782ccd2 (patch)
treef53d53491a6f9ee64419988c942d61b48c7bc9e0
parent396daa749737c08c33e6bd54e37cf099ba86bb23 (diff)
riscv: page align EFI binary section
Change the alignment of the relocation code in EFI binaries to match page boundaries. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--arch/riscv/lib/crt0_riscv_efi.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/crt0_riscv_efi.S b/arch/riscv/lib/crt0_riscv_efi.S
index 793eefdd883..ffe18fa387b 100644
--- a/arch/riscv/lib/crt0_riscv_efi.S
+++ b/arch/riscv/lib/crt0_riscv_efi.S
@@ -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)