diff options
author | 2001-02-03 23:11:23 +0000 | |
---|---|---|
committer | 2001-02-03 23:11:23 +0000 | |
commit | d88fbf4b003e82ee83b1b3cc639508c440032777 (patch) | |
tree | b0ac5c21af7c6468b71d6314bd03cd1694915619 | |
parent | Schedule running of __fini in __init, not __start. (diff) | |
download | wireguard-openbsd-d88fbf4b003e82ee83b1b3cc639508c440032777.tar.xz wireguard-openbsd-d88fbf4b003e82ee83b1b3cc639508c440032777.zip |
oops.
-rw-r--r-- | lib/csu/common_elf/crtbegin.c | 7 | ||||
-rw-r--r-- | lib/csu/crtbegin.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/lib/csu/common_elf/crtbegin.c b/lib/csu/common_elf/crtbegin.c index cef8f19c171..b5be9e6f014 100644 --- a/lib/csu/common_elf/crtbegin.c +++ b/lib/csu/common_elf/crtbegin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtbegin.c,v 1.4 2001/02/03 23:08:41 art Exp $ */ +/* $OpenBSD: crtbegin.c,v 1.5 2001/02/03 23:11:23 art Exp $ */ /* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */ /* @@ -76,7 +76,8 @@ __ctors() (**p++)(); } -extern void __init(void) __attribute__((section(".init"))); +void __init(void) __attribute__((section(".init"))); +void __fini(void) __attribute__((section(".fini"))); void __init() @@ -95,8 +96,6 @@ __init() atexit(__fini); } -extern void __fini(void) __attribute__((section(".fini"))); - void __fini() { diff --git a/lib/csu/crtbegin.c b/lib/csu/crtbegin.c index cef8f19c171..b5be9e6f014 100644 --- a/lib/csu/crtbegin.c +++ b/lib/csu/crtbegin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtbegin.c,v 1.4 2001/02/03 23:08:41 art Exp $ */ +/* $OpenBSD: crtbegin.c,v 1.5 2001/02/03 23:11:23 art Exp $ */ /* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */ /* @@ -76,7 +76,8 @@ __ctors() (**p++)(); } -extern void __init(void) __attribute__((section(".init"))); +void __init(void) __attribute__((section(".init"))); +void __fini(void) __attribute__((section(".fini"))); void __init() @@ -95,8 +96,6 @@ __init() atexit(__fini); } -extern void __fini(void) __attribute__((section(".fini"))); - void __fini() { |