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

And update Nyu-EFI accordingly
This commit is contained in:
Mintsuki
2025-08-14 05:57:33 +02:00
parent d6ce05b5ff
commit 9b9a9db02a
2 changed files with 4 additions and 2 deletions

View File

@@ -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 \

View File

@@ -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