]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Place explicitly zero-initialised variables in the .data section
authorMichael Brown <mcb30@ipxe.org>
Wed, 30 Jul 2025 12:14:21 +0000 (13:14 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 30 Jul 2025 12:15:11 +0000 (13:15 +0100)
commita814c4605907f68db593344facbf2541c4beedc2
tree3780ca49011624a466649c1805cd465c980048a4
parent5bda1727b4eac1bdb6a34c5c2288cd0bbf699c5b
[riscv] Place explicitly zero-initialised variables in the .data section

Variables in the .bss section cannot be relied upon to have zero
values during early initialisation, before we have relocated ourselves
to somewhere suitable in RAM and zeroed the .bss section.

Place any explicitly zero-initialised variables in the .data section
rather than in .bss, so that we can rely on their values even during
this early initialisation stage.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/Makefile.sbi