From 2e45106c0ad5a0895d2a1537b60057b1a18d1c71 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 11 May 2025 14:15:28 +0100 Subject: [PATCH] [riscv] Ensure that prefix_virt is aligned on an xlen boundary Ensure that the prefix_virt dynamic relocation ends up on a suitably aligned boundary for a compressed relocation. Signed-off-by: Michael Brown --- src/arch/riscv/prefix/libprefix.S | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arch/riscv/prefix/libprefix.S b/src/arch/riscv/prefix/libprefix.S index 0143953f7..e9caa3945 100644 --- a/src/arch/riscv/prefix/libprefix.S +++ b/src/arch/riscv/prefix/libprefix.S @@ -37,6 +37,7 @@ * This will be updated if runtime relocations are applied. */ .section ".rodata.prefix_virt", "a", @progbits + .balign ( __riscv_xlen / 8 ) prefix_virt: .dword _prefix .size prefix_virt, . - prefix_virt