:: commit 3b51de510a81fa93b4f8b717e91857c8a8b0f7e0

Mintsuki <mintsuki@protonmail.com> — 2025-08-14 03:57

parents: 03b42f3f90

build: Add .srodata and .sdata2 sections to riscv64 ld script

And update Nyu-EFI accordingly
diff --git a/bootstrap b/bootstrap
index f3a45a52..4e88d3ce 100755
--- a/bootstrap
+++ b/bootstrap
@@ -90,7 +90,7 @@ if ! test -f version; then
     clone_repo_commit \
         https://codeberg.org/osdev/nyu-efi.git \
         nyu-efi \
-        849afdaaa45cb483c6f34ad1ac42052ba7263417
+        2307e1e06c51023285ceac4b41bfdd44d746df8b
 
     clone_repo_commit \
         https://github.com/jibsen/tinf.git \
diff --git a/common/linker_uefi_riscv64.ld.in b/common/linker_uefi_riscv64.ld.in
index 2c319256..1432a5f1 100644
--- a/common/linker_uefi_riscv64.ld.in
+++ b/common/linker_uefi_riscv64.ld.in
@@ -39,6 +39,8 @@ SECTIONS
 
         __data_start = ABSOLUTE(.);
         *(.rodata .rodata.*)
+        *(.srodata .srodata.*)
+        *(.sdata2 .sdata2.*)
 
 #ifdef LINKER_NOMAP
    full_map = .;
@@ -54,8 +56,8 @@ SECTIONS
     } :data
 
     .bss : {
-        *(.sbss .sbss.*)
         *(.bss .bss.*)
+        *(.sbss .sbss.*)
         *(COMMON)
    data_end = .;
     } :data
tab: 248 wrap: offon