[En-Nut-Discussion] branches/devnut_m3n: Another linker problem

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jul 14 22:44:15 CEST 2011


Hello,

with the newest yagarto toolchain, I couldn't link for the stm32f1.
With appended patch, thinks compile again.

Can anybody comment/review?

Thanks
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: nut/arch/cm3/ldscripts/stm32f10x_flash.ld
===================================================================
--- nut/arch/cm3/ldscripts/stm32f10x_flash.ld	(Revision 3518)
+++ nut/arch/cm3/ldscripts/stm32f10x_flash.ld	(Arbeitskopie)
@@ -4,8 +4,6 @@
  *
  ***********************************************************************************/
 
-PROVIDE (__heap_start = _sheap);
-
 _ramend = ORIGIN(SRAM0) + LENGTH(SRAM0);
 
 SECTIONS
@@ -67,16 +65,9 @@
         _pspstack_start = .;
         KEEP(*(.psp_stack .psp_stack.*));
         _pspstack_end = .;
-    } > SRAM0
+        PROVIDE (__heap_start = .);
+   } > SRAM0
 
-    .heap (NOLOAD):
-    {
-        . = ALIGN(4);
-        _sheap = .;
-        . = _ramend - .;
-        _eheap = .;
-    } > SRAM0
-
 end = .;
 /*
     DISCARD :



More information about the En-Nut-Discussion mailing list