]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Place prefix debug strings in .rodata
authorMichael Brown <mcb30@ipxe.org>
Tue, 6 May 2025 14:48:22 +0000 (15:48 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 6 May 2025 14:51:39 +0000 (15:51 +0100)
commitb3cbdc86fcb7a483bce7d73dae269257cb61002e
treee771474432a2e0f6473ba6fbdb65a5536d94be19
parent4bef4c80699da2ae75895035644ddadfdc1a62f8
[riscv] Place prefix debug strings in .rodata

The GNU assembler does not seem to automatically assume alignment to
an instruction boundary for sections containing assembled code.

Place the prefix debug strings (if present) in .rodata rather than in
.prefix, to avoid potentially creating misaligned code sections.

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