Browse Source

Put provides in one place

Vadim Kaushan 6 years ago
parent
commit
ec35554f40
1 changed files with 2 additions and 4 deletions
  1. 2 4
      riscv-rt/link.x

+ 2 - 4
riscv-rt/link.x

@@ -1,4 +1,6 @@
+PROVIDE(_stext = ORIGIN(REGION_TEXT));
 PROVIDE(_stack_start = ORIGIN(REGION_STACK) + LENGTH(REGION_STACK));
+PROVIDE(_heap_size = 0);
 
 PROVIDE(trap_handler = default_trap_handler);
 
@@ -16,8 +18,6 @@ PHDRS
 
 SECTIONS
 {
-  PROVIDE(_stext = ORIGIN(REGION_TEXT));
-
   .text.dummy ORIGIN(REGION_TEXT) :
   {
     /* This section is intended to make _stext address work */
@@ -60,8 +60,6 @@ SECTIONS
     _ebss = .;
   } > REGION_BSS :virtual
 
-  PROVIDE(_heap_size = 0);
-
   /* fictitious region that represents the memory available for the heap */
   .heap (INFO) :
   {