Bläddra i källkod

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 år sedan
förälder
incheckning
eb00f87c16
1 ändrade filer med 1 tillägg och 1 borttagningar
  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