mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
hurd: Fix accessing errno from rtld
Letting rtld access errno through TLS can not work at early stages since TLS will not be initialized yet. When a private errno is not possible, we thus have no other way than going through __errno_location. * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the TLS declaration of errno.
This commit is contained in:
parent
b8114edd3c
commit
fa97d2ab5b
@ -1,3 +1,8 @@
|
||||
2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
* include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
|
||||
TLS declaration of errno.
|
||||
|
||||
2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #22998]
|
||||
|
@ -20,7 +20,7 @@
|
||||
# define errno rtld_errno
|
||||
extern int rtld_errno attribute_hidden;
|
||||
|
||||
# elif IS_IN_LIB
|
||||
# elif IS_IN_LIB && !IS_IN (rtld)
|
||||
|
||||
# include <tls.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user