mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
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:
parent
1b7db0de08
commit
04a57d2c83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177470
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user