From b2077b60a3a2e34398b079048aff0887fe1bbdc9 Mon Sep 17 00:00:00 2001 From: isiora Date: Fri, 22 Sep 2017 10:26:20 +0000 Subject: 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 --- os/common/startup/ARM/compilers/GCC/ld/SAMA5D2-T.ld | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 +} -- cgit v1.2.3