NetBSD/lib/csu/common_elf/crtend.c
cgd cccb7a88b4 Reimplement in C, adding ELF support. if compiled with -DECOFF_COMPAT
(currently the default), then it compiles on both an ECOFF toolchain
and on an ELF toolchain (but w/o support for dynamic linking or C++
constructors & destructors).  If compiled without -DECOFF_COMPAT, it
supports statically- or dynamically-linked ELF binaries (and shared
libraries).
1996-09-12 16:59:01 +00:00

13 lines
357 B
C

/* $NetBSD: crtend.c,v 1.1 1996/09/12 16:59:04 cgd Exp $ */
#ifndef ECOFF_COMPAT
#include <sys/cdefs.h>
static void (*__CTOR_LIST__[1]) __P((void))
__attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */
static void (*__DTOR_LIST__[1]) __P((void))
__attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */
#endif /* !ECOFF_COMPAT */