Browse Source

fix: update link script for none-payload mode

Signed-off-by: Woshiluo Luo <woshiluo.luo@outlook.com>
Woshiluo Luo 4 months ago
parent
commit
7efc8a2c57
1 changed files with 9 additions and 1 deletions
  1. 9 1
      prototyper/build.rs

+ 9 - 1
prototyper/build.rs

@@ -25,8 +25,16 @@ SECTIONS {
         *(.rodata .rodata.*)
         *(.srodata .srodata.*)
         . = ALIGN(8);  
-        erodata = .;
     } 
+    .dynsym : ALIGN(8) {
+        *(.dynsym)
+    }
+    .rela.dyn : ALIGN(8) {
+        __rel_dyn_start = .;
+        *(.rela*)
+        __rel_dyn_end = .;
+    }
+    erodata = .;
     .data : ALIGN(8) { 
         sdata = .;
         *(.data .data.*)