]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/ldscript-flash
Add Makefile for fpga directory (Windows codepath is untested, in any case, go.bat...
[proxmark3-svn] / bootrom / ldscript-flash
index 0d5d732561bfacfe524dcd571cf0c46693a2c2d0..50218d684e5cefe5e12130cecd0863032e50bb69 100644 (file)
@@ -1,11 +1,32 @@
+INCLUDE ../common/ldscript.common\r
+\r
+ENTRY(flashstart)\r
 SECTIONS\r
 {\r
-    . = 0x00000000;\r
-    .text : { obj/flash-reset.o(.text) *(.text) }\r
-    .rodata : { *(.rodata) }\r
-    . = 0x00200000;\r
-    .data : { *(.data) }\r
-    __bss_start__ = .;\r
-    .bss : { *(.bss) }\r
+    . = 0;\r
+    \r
+    bootphase1 : {\r
+       *(.startup) \r
+       *(.bootphase1)\r
+    } >bootphase1\r
+    \r
+    bootphase2 : {\r
+       __bootphase2_start__ = .;\r
+       *(.startphase2)\r
+       *(.text)\r
+       *(.glue_7)\r
+       *(.glue_7t)\r
+       *(.rodata)\r
+        *(.data)\r
+       . = ALIGN( 32 / 8 );\r
+       __bootphase2_end__ = .;\r
+    } >ram AT>bootphase2\r
+    \r
+    .bss : {\r
+       __bss_start__ = .; \r
+       *(.bss)\r
+    } >ram\r
+    \r
+    . = ALIGN( 32 / 8 );\r
     __bss_end__ = .;\r
 }\r
Impressum, Datenschutz