[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 <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-11 14:15:28 +01:00
parent 95ede670bc
commit 2e45106c0a

View 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