Resolve __error()'s PLT early so that it needs not to be resolved again,

otherwise rwlock is recursivly called when signal happens and the __error
was never resolved before.
This commit is contained in:
David Xu 2008-03-21 02:31:55 +00:00
parent 1b7db0de08
commit 04a57d2c83
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177470

View File

@ -220,6 +220,9 @@ _thr_rtld_init(void)
/* force to resolve _umtx_op PLT */
_umtx_op((struct umtx *)&dummy, UMTX_OP_WAKE, 1, 0, 0);
/* force to resolve errno() PLT */
__error();
li.lock_create = _thr_rtld_lock_create;
li.lock_destroy = _thr_rtld_lock_destroy;