diff options
-rwxr-xr-x | os/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/os/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld b/os/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld index aacf3aa5c..627ccc8da 100755 --- a/os/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld +++ b/os/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld @@ -41,3 +41,17 @@ REGION_ALIAS("DATA_RAM", ram0); REGION_ALIAS("BSS_RAM", ram0);
INCLUDE rules.ld
+
+/* Override of the ENTRY
+ in order to point towards boot code */
+ENTRY(Boot_Handler)
+
+/* Extending the startup section to include
+ the boot code */
+SECTIONS
+{
+ startup : ALIGN(16) SUBALIGN(16)
+ {
+ KEEP(*(.boot))
+ } > flash
+}
|