aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARMCMx/crt0.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/GCC/ARMCMx/crt0.c')
-rw-r--r--os/ports/GCC/ARMCMx/crt0.c4
1 files changed, 2 insertions, 2 deletions
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;