summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-03-24 19:13:10 +0000
committerkib <kib@FreeBSD.org>2012-03-24 19:13:10 +0000
commit196786e250a16f561fff3d9c357a6424c8b44377 (patch)
tree9d56159de7b3f1ea2423f9d9e3d5dff5e6a90a15 /libexec
parent67789bd4be452436575143436e6f0018219fc75f (diff)
downloadFreeBSD-src-196786e250a16f561fff3d9c357a6424c8b44377.zip
FreeBSD-src-196786e250a16f561fff3d9c357a6424c8b44377.tar.gz
Provide short-circuit exit(3) implementation for rtld.
There is no atexit finalizers in rtld to call on rtld exiting (due to errors). Submitted by: bde No objections from: kan MFC after: 2 weeks
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/rtld.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 4dac1c1..b3d3329 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -4364,6 +4364,17 @@ __getosreldate(void)
return (osreldate);
}
+void
+exit(int status)
+{
+
+ _exit(status);
+}
+
+void (*__cleanup)(void);
+int __isthreaded = 0;
+int _thread_autoinit_dummy_decl = 1;
+
/*
* No unresolved symbols for rtld.
*/
OpenPOWER on IntegriCloud