瀏覽代碼

Fix _stext redefinition

Vadim Kaushan 6 年之前
父節點
當前提交
43b527c99b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      riscv-rt/link.x

+ 5 - 0
riscv-rt/link.x

@@ -21,6 +21,11 @@ SECTIONS
 {
   PROVIDE(_stext = ORIGIN(FLASH));
 
+  .text.dummy ORIGIN(FLASH) :
+  {
+    /* This section is intended to make _stext address work */
+  } > FLASH :ram
+
   .text ALIGN(_stext,4) :
   {
     /* Put reset handler first in .text section so it ends up as the entry */