X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2bfed17db25367442c6ad57a76a3c998ec84889c..e3ae0257834f7d134c7f80db6fa23668b5a5fa6d:/common/ldscript.common?ds=sidebyside diff --git a/common/ldscript.common b/common/ldscript.common index 4c4bd390..98161d3a 100644 --- a/common/ldscript.common +++ b/common/ldscript.common @@ -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;