1 /* $NetBSD: crtend.c,v 1.11 2004/08/28 00:19:22 thorpej Exp $ */ 2 3 #include <sys/cdefs.h> 4 #include "dot_init.h" 5 6 __RCSID("$MirOS: src/lib/csu/common_elf/crtend.c,v 1.4 2013/10/31 20:06:15 tg Exp $"); 7 8 /* 9 * WE SHOULD BE USING GCC-SUPPLIED crtend.o FOR GCC 3.3 AND 10 * LATER!!! 11 */ 12 #if !defined(HAVE_VERSION_SPECIFIC_GCC_LIBS) && __GNUC_PREREQ__(3, 3) 13 #error "Use GCC-supplied crtend.o" 14 #endif 15 16 static void (*__CTOR_LIST__[1])(void) 17 __attribute__((__unused__)) 18 __attribute__((__section__(".ctors"))) = { (void *)0 }; /* XXX */ 19 static void (*__DTOR_LIST__[1])(void) 20 __attribute__((__unused__)) 21 __attribute__((__section__(".dtors"))) = { (void *)0 }; /* XXX */ 22 23 #ifdef DWARF2_EH 24 static unsigned int __FRAME_END__[] 25 __attribute__((__unused__)) 26 __attribute__((__section__(".eh_frame"))) = { 0 }; 27 #endif 28 29 #if defined(JCR) && defined(__GNUC__) 30 static void *__JCR_END__[1] 31 __attribute__((__unused__, __section__(".jcr"))) = { (void *) 0 }; 32 #endif 33