]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[riscv] Ensure that prefix_virt is aligned on an xlen boundary
authorMichael Brown <mcb30@ipxe.org>
Sun, 11 May 2025 13:15:28 +0000 (14:15 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 11 May 2025 13:17:39 +0000 (14:17 +0100)
Ensure that the prefix_virt dynamic relocation ends up on a suitably
aligned boundary for a compressed relocation.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/prefix/libprefix.S

index 0143953f790f2ef67c3f852e3e1c76824aabf766..e9caa3945297212180bad9ec008aebb541f1f60a 100644 (file)
@@ -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