Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common Put the ctors code in .text.startup and dtors...



details:   https://anonhg.NetBSD.org/src/rev/a2ffd0eb494f
branches:  trunk
changeset: 789472:a2ffd0eb494f
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Aug 19 22:15:13 2013 +0000

description:
Put the ctors code in .text.startup and dtors code in .text.exit

diffstat:

 lib/csu/common/crtbegin.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 5e6111388c20 -r a2ffd0eb494f lib/csu/common/crtbegin.c
--- a/lib/csu/common/crtbegin.c Mon Aug 19 22:14:37 2013 +0000
+++ b/lib/csu/common/crtbegin.c Mon Aug 19 22:15:13 2013 +0000
@@ -27,7 +27,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: crtbegin.c,v 1.3 2013/06/27 21:24:39 matt Exp $");
+__RCSID("$NetBSD: crtbegin.c,v 1.4 2013/08/19 22:15:13 matt Exp $");
 
 typedef void (*fptr_t)(void);
 
@@ -65,7 +65,7 @@
 
 static void __do_global_ctors_aux(void) __used;
 
-static void
+static void __section(".text.startup")
 __do_global_ctors_aux(void)
 {
        static unsigned char __initialized;
@@ -100,7 +100,7 @@
 
 static void __do_global_dtors_aux(void) __used;
 
-static void
+static void __section(".text.exit")
 __do_global_dtors_aux(void)
 {
        static unsigned char __finished;



Home | Main Index | Thread Index | Old Index