From d43e444377e2f1e0db7ed93116e79c58c1520db7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 17 Apr 2011 14:41:19 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2884 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/ARMCMx/crt0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os') diff --git a/os/ports/GCC/ARMCMx/crt0.c b/os/ports/GCC/ARMCMx/crt0.c index 90f632271..685231ed1 100644 --- a/os/ports/GCC/ARMCMx/crt0.c +++ b/os/ports/GCC/ARMCMx/crt0.c @@ -186,7 +186,7 @@ void __late_init(void) {} * @note This function is a weak symbol. */ #if !defined(__DOXYGEN__) -__attribute__((weak, noreturn)) +__attribute__((weak, naked)) #endif void _default_exit(void) { while (1) @@ -197,7 +197,7 @@ void _default_exit(void) { * @brief Reset vector. */ #if !defined(__DOXYGEN__) -__attribute__((noreturn)) +__attribute__((naked)) #endif void ResetHandler(void) { uint32_t psp, ctl; -- cgit v1.2.3