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
This commit is contained in:
Konstantin Belousov 2012-03-24 19:13:10 +00:00
parent 1233083107
commit 83dd177761
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233430

View File

@ -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.
*/