summaryrefslogtreecommitdiff
path: root/lib/csu/common
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2013-08-19 22:15:13 +0000
committermatt <matt@NetBSD.org>2013-08-19 22:15:13 +0000
commiteb401c86933b9c070d17084dde2ccaa3f72d4bb2 (patch)
tree1d0a8fe470edbb133344535526ba782a6383fc5c /lib/csu/common
parente4ffad0a75c51b565134784bd20a4b90c35d97a3 (diff)
Put the ctors code in .text.startup and dtors code in .text.exit
Diffstat (limited to 'lib/csu/common')
-rw-r--r--lib/csu/common/crtbegin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csu/common/crtbegin.c b/lib/csu/common/crtbegin.c
index 80c46e5f717..d20510cd4dd 100644
--- a/lib/csu/common/crtbegin.c
+++ b/lib/csu/common/crtbegin.c
@@ -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_LIST_END__[];
static void __do_global_dtors_aux(void) __used;
-static void
+static void __section(".text.exit")
__do_global_dtors_aux(void)
{
static unsigned char __finished;