Parcourir la source

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 il y a 5 ans
Parent
commit
eb00f87c16
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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