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:
Samuel Thibault 2018-03-25 00:48:01 +01:00
parent b8114edd3c
commit fa97d2ab5b
2 changed files with 6 additions and 1 deletions

View File

@ -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]

View File

@ -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>