:: commit 09c87feaee5521afe23dad8cd3207618a9f5d673

mintsuki <mintsuki@protonmail.com> — 2023-09-11 11:49

parents: 916aa370b2

decompressor: Add rodata PHDR and section to ld script

diff --git a/decompressor/linker.ld b/decompressor/linker.ld
index 3968e535..69d35322 100644
--- a/decompressor/linker.ld
+++ b/decompressor/linker.ld
@@ -5,6 +5,7 @@ ENTRY(_start)
 PHDRS
 {
     text  PT_LOAD    FLAGS((1 << 0) | (1 << 2)) ;
+    rodata PT_LOAD   FLAGS((1 << 2)) ;
     data  PT_LOAD    FLAGS((1 << 1) | (1 << 2)) ;
 }
 
@@ -17,9 +18,12 @@ SECTIONS
         *(.text .text.*)
     } :text
 
+    .rodata : {
+        *(.rodata .rodata.*)
+    } :rodata
+
     .data : {
         *(.data .data.*)
-        *(.rodata .rodata.*)
     } :data
 
     .bss : {
tab: 248 wrap: offon