From 10ace498cbda83ef58bd42223168fa9c2574ee6d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 30 Nov 2010 08:15:35 +0000 Subject: 2010-11-30 Sebastian Huber * libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Revert previous commit due to too many broken linker command files. The HAVE_INITFINI_ARRAY is defined for nearly all targets by Newlib, but only few linker command files respect this. --- cpukit/libcsupport/src/newlibc_exit.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/src/newlibc_exit.c b/cpukit/libcsupport/src/newlibc_exit.c index 3cf602d62e..818ba884f4 100644 --- a/cpukit/libcsupport/src/newlibc_exit.c +++ b/cpukit/libcsupport/src/newlibc_exit.c @@ -118,13 +118,10 @@ void libc_wrapup(void) */ #include -#include - -#if defined(HAVE_INITFINI_ARRAY) - extern void __libc_fini_array(void); -#endif /* FIXME: These defines are a blatant hack */ + #define EXIT_SYMBOL _exit + #if defined(__AVR__) #undef __USE_INIT_FINI__ #endif @@ -138,22 +135,8 @@ void libc_wrapup(void) extern void FINI_SYMBOL( void ); #endif -void _exit(int status) +void EXIT_SYMBOL(int status) { - #if defined(HAVE_INITFINI_ARRAY) - /* - * According to - * - * System V Application Binary Interface - * Chapter 5 - * Initialization and Termination Functions - * - * we have to call the functions referenced by the .fini_array before the - * one referenced by the .fini section. - */ - __libc_fini_array(); - #endif - /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. -- cgit v1.2.3