Author: kib
Date: Sat Mar 24 19:13:10 2012
New Revision: 233430
URL: http://svn.freebsd.org/changeset/base/233430

Log:
  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

Modified:
  head/libexec/rtld-elf/rtld.c

Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c        Sat Mar 24 18:43:18 2012        
(r233429)
+++ head/libexec/rtld-elf/rtld.c        Sat Mar 24 19:13:10 2012        
(r233430)
@@ -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.
  */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to