Преглед на файлове

Merge #41

41: Make linker script compatible with GNU linker. r=Disasm a=pftbest

Assigning to the dot inside the section declaration is section
relative, not absolute.

Co-authored-by: Vadzim Dambrouski <pftbest@gmail.com>
bors[bot] преди 5 години
родител
ревизия
5a31ab70d0
променени са 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