瀏覽代碼

Make linker script compatible with GNU linker.

Assigning to the dot inside the section declaration is section
relative, not absolute.
Vadzim Dambrouski 5 年之前
父節點
當前提交
4e9aa15f02
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      riscv-rt/link.x

+ 2 - 2
riscv-rt/link.x

@@ -25,7 +25,7 @@ SECTIONS
   .text.dummy (NOLOAD) :
   {
     /* This section is intended to make _stext address work */
-    . = _stext;
+    . = ABSOLUTE(_stext);
   } > REGION_TEXT
 
   .text _stext :
@@ -84,7 +84,7 @@ SECTIONS
   .stack (NOLOAD) :
   {
     _estack = .;
-    . = _stack_start;
+    . = ABSOLUTE(_stack_start);
     _sstack = .;
   } > REGION_STACK