4
0
Эх сурвалжийг харах

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.
Wladimir J. van der Laan 5 жил өмнө
parent
commit
eb00f87c16
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      riscv-rt/link.x

+ 1 - 1
riscv-rt/link.x

@@ -66,7 +66,7 @@ SECTIONS
   .bss :
   {
     _sbss = .;
-    *(.bss .bss.*);
+    *(.sbss .sbss.* .bss .bss.*);
     . = ALIGN(4);
     _ebss = .;
   } > REGION_BSS :virtual