hurd: Fix accessing errno from rtld
commitfa97d2ab5b19de0ca3cd02471d0bbf4f09b5032d
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 24 Mar 2018 23:48:01 +0000 (25 00:48 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 24 Mar 2018 23:48:01 +0000 (25 00:48 +0100)
tree07b74b0acfbde5037724e5b79850a0821bf3c30a
parentb8114edd3c9e789c36789f4ce5ca6deb41ea0a14
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.
ChangeLog
include/errno.h