From: Michael Brown Date: Sun, 11 May 2025 13:15:28 +0000 (+0100) Subject: [riscv] Ensure that prefix_virt is aligned on an xlen boundary X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e45106c0ad5a0895d2a1537b60057b1a18d1c71;p=thirdparty%2Fipxe.git [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 --- 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