mirror of
https://github.com/ipxe/ipxe
synced 2025-12-07 18:00:28 +03:00
[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>
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
*/
|
||||
.macro progress message
|
||||
#ifndef NDEBUG
|
||||
.section ".prefix.data", "aw", @progbits
|
||||
.section ".rodata", "a", @progbits
|
||||
progress_\@:
|
||||
.ascii "\message"
|
||||
.equ progress_\@_len, . - progress_\@
|
||||
|
||||
Reference in New Issue
Block a user