Skip to content

Commit eb00f87

Browse files
committed
Add .sbss section to linker script
Rust nightly has started generating this section for RISC-V executables, place it at the start of the bss area.
1 parent b66f595 commit eb00f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv-rt/link.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ SECTIONS
6666
.bss :
6767
{
6868
_sbss = .;
69-
*(.bss .bss.*);
69+
*(.sbss .sbss.* .bss .bss.*);
7070
. = ALIGN(4);
7171
_ebss = .;
7272
} > REGION_BSS :virtual

0 commit comments

Comments
 (0)