mirror of
https://github.com/ipxe/ipxe
synced 2026-01-22 20:19:08 +03:00
[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:
@@ -37,6 +37,7 @@
|
|||||||
* This will be updated if runtime relocations are applied.
|
* This will be updated if runtime relocations are applied.
|
||||||
*/
|
*/
|
||||||
.section ".rodata.prefix_virt", "a", @progbits
|
.section ".rodata.prefix_virt", "a", @progbits
|
||||||
|
.balign ( __riscv_xlen / 8 )
|
||||||
prefix_virt:
|
prefix_virt:
|
||||||
.dword _prefix
|
.dword _prefix
|
||||||
.size prefix_virt, . - prefix_virt
|
.size prefix_virt, . - prefix_virt
|
||||||
|
|||||||
Reference in New Issue
Block a user