change log for rtems (2010-11-30)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Nov 30 09:10:31 UTC 2010


 *sh*:
2010-11-30	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* 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.

M 1.2661  cpukit/ChangeLog
M   1.11  cpukit/libcsupport/src/newlibc_exit.c
M   1.31  cpukit/score/src/threadhandler.c

diff -u rtems/cpukit/ChangeLog:1.2660 rtems/cpukit/ChangeLog:1.2661
--- rtems/cpukit/ChangeLog:1.2660	Mon Nov 29 08:14:27 2010
+++ rtems/cpukit/ChangeLog	Tue Nov 30 02:15:35 2010
@@ -1,3 +1,10 @@
+2010-11-30	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* 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.
+
 2010-11-29	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Added

diff -u rtems/cpukit/libcsupport/src/newlibc_exit.c:1.10 rtems/cpukit/libcsupport/src/newlibc_exit.c:1.11
--- rtems/cpukit/libcsupport/src/newlibc_exit.c:1.10	Mon Nov 29 08:14:27 2010
+++ rtems/cpukit/libcsupport/src/newlibc_exit.c	Tue Nov 30 02:15:35 2010
@@ -118,13 +118,10 @@
  */
 
 #include <unistd.h>
-#include <newlib.h>
-
-#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 @@
     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.

diff -u rtems/cpukit/score/src/threadhandler.c:1.30 rtems/cpukit/score/src/threadhandler.c:1.31
--- rtems/cpukit/score/src/threadhandler.c:1.30	Mon Nov 29 08:14:27 2010
+++ rtems/cpukit/score/src/threadhandler.c	Tue Nov 30 02:15:35 2010
@@ -30,14 +30,6 @@
 #include <rtems/score/userext.h>
 #include <rtems/score/wkspace.h>
 
-#if defined(RTEMS_NEWLIB)
-  #include <newlib.h>
-#endif
-
-#if defined(HAVE_INITFINI_ARRAY)
-  extern void __libc_init_array(void);
-#endif
-
 #if defined(__AVR__)
   #undef __USE_INIT_FINI__
 #endif
@@ -146,20 +138,6 @@
      */
     if (!doneCons) /* && (volatile void *)_init) */ {
       INIT_NAME ();
-
-      #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 .init_array after
-         * the one referenced by the .init section.
-         */
-        __libc_init_array();
-      #endif
     }
   #endif
 



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20101130/732070fd/attachment.html>


More information about the vc mailing list