crtend.c revision 1.8
1/* $OpenBSD: crtend.c,v 1.8 2009/07/14 16:37:31 jsg Exp $ */ 2/* $NetBSD: crtend.c,v 1.1 1996/09/12 16:59:04 cgd Exp $ */ 3 4#include <sys/cdefs.h> 5#include "md_init.h" 6#include "extern.h" 7 8static init_f __CTOR_LIST__[1] 9 __attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */ 10static init_f __DTOR_LIST__[1] 11 __attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */ 12 13static const int __EH_FRAME_END__[] 14__attribute__((unused, section(".eh_frame"), aligned(4))) = { 0 }; 15 16#if (__GNUC__ > 2) 17static void * __JCR_END__[] 18__attribute__((unused, section(".jcr"), aligned(sizeof(void*)))) = { 0 }; 19#endif 20 21MD_SECTION_EPILOGUE(".init"); 22MD_SECTION_EPILOGUE(".fini"); 23