Import BSD-licensed crtbegin/crtend support.
[dragonfly.git] / lib / csu / common / crtend.c
1 /*      $NetBSD: crtend.c,v 1.9 2001/12/30 23:45:01 thorpej Exp $       */
2 /* $DragonFly: src/lib/csu/common/Attic/crtend.c,v 1.3 2004/06/14 18:56:12 joerg Exp $ */
3
4 #include <sys/cdefs.h>
5 #include "dot_init.h"
6
7 static void (*__CTOR_LIST__[1]) __P((void))
8     __attribute__((__unused__))
9     __attribute__((section(".ctors"))) = { (void *)0 };         /* XXX */
10 static void (*__DTOR_LIST__[1]) __P((void))
11     __attribute__((__unused__))
12     __attribute__((section(".dtors"))) = { (void *)0 };         /* XXX */
13
14 #ifdef DWARF2_EH
15 static unsigned int __FRAME_END__[]
16     __attribute__((__unused__))
17     __attribute__((section(".eh_frame"))) = { 0 };
18 #endif
19
20 #if defined(JCR) && defined(__GNUC__)
21 static void *__JCR_END__[1]
22     __attribute__((__unused__, section(".jcr"))) = { (void *) 0 };
23 #endif