Module Name: src Committed By: matt Date: Mon Aug 19 22:15:13 UTC 2013
Modified Files: src/lib/csu/common: crtbegin.c Log Message: Put the ctors code in .text.startup and dtors code in .text.exit To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/csu/common/crtbegin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/csu/common/crtbegin.c diff -u src/lib/csu/common/crtbegin.c:1.3 src/lib/csu/common/crtbegin.c:1.4 --- src/lib/csu/common/crtbegin.c:1.3 Thu Jun 27 21:24:39 2013 +++ src/lib/csu/common/crtbegin.c Mon Aug 19 22:15:13 2013 @@ -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 long dwarf_eh_object[8]; 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 @@ __dso_hidden extern const fptr_t __DTOR_ static void __do_global_dtors_aux(void) __used; -static void +static void __section(".text.exit") __do_global_dtors_aux(void) { static unsigned char __finished;