]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/ldscript-flash
Implement version information storage and retrieval for the bootrom and the osimage.
[proxmark3-svn] / bootrom / ldscript-flash
index 50218d684e5cefe5e12130cecd0863032e50bb69..d2e6648b8c8210528a7f5d1ff8c592f97dc06f25 100644 (file)
@@ -8,6 +8,18 @@ SECTIONS
     bootphase1 : {\r
        *(.startup) \r
        *(.bootphase1)\r
+       \r
+       /* It seems to be impossible to flush align a section at the\r
+          end of a memory segment. Instead, we'll put the version_information\r
+          wherever the linker wants it, and then put a pointer to the start\r
+          of the version information at the end of the section.\r
+          -- Henryk Plötz <henryk@ploetzli.ch> 2009-08-28 */\r
+          \r
+       _version_information_start = .;\r
+       *(.version_information);\r
+       \r
+       . = LENGTH(bootphase1) - 0x4; /* Skip ahead to the end */\r
+       LONG(_version_information_start)\r
     } >bootphase1\r
     \r
     bootphase2 : {\r
Impressum, Datenschutz