diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-12-28 04:11:53 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-12-28 04:11:53 +0000 |
commit | 4a7cf581554801aceff873e144c105234cab490f (patch) | |
tree | ec95c3ea9e6675841d806404a3dec863b353fd94 /lib/csu | |
parent | f88c064ea178caaffe89161777cbd5b3bc112a47 (diff) |
correct array initializer size to be [1], not [0] fixes gcc3 libstdc++ error
ok espie, millert
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/common_elf/crtbeginS.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csu/common_elf/crtbeginS.c b/lib/csu/common_elf/crtbeginS.c index 5cf453f40bf..da66081dae3 100644 --- a/lib/csu/common_elf/crtbeginS.c +++ b/lib/csu/common_elf/crtbeginS.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtbeginS.c,v 1.3 2003/06/26 23:19:18 deraadt Exp $ */ +/* $OpenBSD: crtbeginS.c,v 1.4 2003/12/28 04:11:52 drahn Exp $ */ /* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */ /* @@ -42,9 +42,9 @@ */ #include <stdlib.h> -static void (*__CTOR_LIST__[0])(void) +static void (*__CTOR_LIST__[1])(void) __attribute__((section(".ctors"))) = { (void *)-1 }; /* XXX */ -static void (*__DTOR_LIST__[0])(void) +static void (*__DTOR_LIST__[1])(void) __attribute__((section(".dtors"))) = { (void *)-1 }; /* XXX */ static void __dtors(void); |