summaryrefslogtreecommitdiff
path: root/atmel-samd/asf/sam0
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-02-25 12:19:33 +0100
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-02-26 01:00:33 +0100
commit062fac1d43d42b35e0ecdaaec124c29b65db7c68 (patch)
treeab2b653796caea6d368ae793e07e5382b0759bab /atmel-samd/asf/sam0
parent3fd19c60ccd879ed676bae72d42b709b34eeaa23 (diff)
atmel-samd: Use link time optimization to reduce code size of builds which
share space with the file system. "Express" builds with SPI flash crash the compiler for some reason so its currently disabled for them.
Diffstat (limited to 'atmel-samd/asf/sam0')
-rw-r--r--atmel-samd/asf/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atmel-samd/asf/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c b/atmel-samd/asf/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c
index 670fb0d61..8e14b991f 100644
--- a/atmel-samd/asf/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c
+++ b/atmel-samd/asf/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c
@@ -127,7 +127,7 @@ void AC1_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler
#endif
/* Exception Table */
-__attribute__ ((section(".vectors")))
+__attribute__ ((used, section(".vectors")))
const DeviceVectors exception_table = {
/* Configure Initial Stack Pointer, using linker-generated symbols */
@@ -229,7 +229,7 @@ const DeviceVectors exception_table = {
* \brief This is the code that gets called on processor reset.
* To initialize the device, and call the main() routine.
*/
-void Reset_Handler(void)
+__attribute__ ((used))void Reset_Handler(void)
{
uint32_t *pSrc, *pDest;