summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport/src/newlibc_exit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-11-20 19:42:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-11-20 19:42:41 +0000
commitbd59b348c6407854eee75f06f6ff9868437205e9 (patch)
treedbb7348dc61b0c1ed51ce786175d315a0066a8cd /cpukit/libcsupport/src/newlibc_exit.c
parent59c9f260b4384983019713440c331b8f937a5034 (diff)
2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Do not think about running init/fini on AVR. We do not know what mechanism it uses but this is not it.
Diffstat (limited to 'cpukit/libcsupport/src/newlibc_exit.c')
-rw-r--r--cpukit/libcsupport/src/newlibc_exit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/newlibc_exit.c b/cpukit/libcsupport/src/newlibc_exit.c
index f85ec42719..26213b688a 100644
--- a/cpukit/libcsupport/src/newlibc_exit.c
+++ b/cpukit/libcsupport/src/newlibc_exit.c
@@ -122,6 +122,9 @@ void libc_wrapup(void)
#if !defined(RTEMS_UNIX)
#define EXIT_SYMBOL _exit
+ #if defined(__AVR__)
+ #undef __USE_INIT_FINI__
+ #endif
#if defined(__USE_INIT_FINI__)
#if defined(__m32r__)
#define FINI_SYMBOL __fini