aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/startup/ARM
diff options
context:
space:
mode:
authorisiora <none@example.com>2017-09-22 10:26:20 +0000
committerisiora <none@example.com>2017-09-22 10:26:20 +0000
commitb2077b60a3a2e34398b079048aff0887fe1bbdc9 (patch)
tree9a293c880945110022ddc1a6321c0837fa08d20b /os/common/startup/ARM
parent02ea87ca15af6dd2e5dceab119302429cf6d53dd (diff)
downloadChibiOS-b2077b60a3a2e34398b079048aff0887fe1bbdc9.tar.gz
ChibiOS-b2077b60a3a2e34398b079048aff0887fe1bbdc9.tar.bz2
ChibiOS-b2077b60a3a2e34398b079048aff0887fe1bbdc9.zip
Entry to Boot_Handler, boot code in startup section.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10676 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/startup/ARM')
-rwxr-xr-xos/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld14
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
+}