]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/ldscript.common
Eradicate all occurences of hardcoded memory addresses from all sources files, except...
[proxmark3-svn] / common / ldscript.common
index 4c4bd3906127eebe0f6f7315e0c4aff20fd41e0d..98161d3ad7455f10ad018db29914ccb7c42eb44d 100644 (file)
@@ -14,3 +14,9 @@ MEMORY
         ram        : ORIGIN = 0x00200000, LENGTH = 64K
 }
 
+/* Export some information that can be used from within the firmware */
+_bootphase1_version_pointer = ORIGIN(bootphase1) + LENGTH(bootphase1) - 0x4;
+_osimage_entry = ORIGIN(osimage);
+_flash_start = ORIGIN(bootphase1);
+_flash_end = ORIGIN(osimage) + LENGTH(osimage);
+_stack_end = ORIGIN(ram) + LENGTH(ram) - 8;
Impressum, Datenschutz