Skip to content

Commit 80759f2

Browse files
bors[bot]laanwj
andcommitted
Merge #35
35: Add .sbss section to linker script r=Disasm a=laanwj Rust nightly has started generating this section for RISC-V executables, place it at the start of the bss area. ``` = note: rust-lld: error: no memory region specified for section '.sbss' ``` I think this is correct, looking at other uses of the section, though I could find no definitive documentation for this. Co-authored-by: Wladimir J. van der Laan <[email protected]>
2 parents b66f595 + eb00f87 commit 80759f2

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)