[hurd,commited] hurd: Replace threadvars with TLS
Joseph Myers
joseph@codesourcery.com
Mon Mar 19 16:43:00 GMT 2018
On Sat, 17 Mar 2018, Samuel Thibault wrote:
> diff --git a/sysdeps/mach/hurd/errno-loc.c b/sysdeps/mach/hurd/errno-loc.c
> index 7b1e7ce347..95d0fe47c4 100644
> --- a/sysdeps/mach/hurd/errno-loc.c
> +++ b/sysdeps/mach/hurd/errno-loc.c
> @@ -16,13 +16,21 @@
> License along with the GNU C Library; if not, see
> <http://www.gnu.org/licenses/>. */
>
> -#include <errno.h>
> -#include <hurd/threadvar.h>
> -
> -int *
> +#if IS_IN (rtld)
> +/*
> + * rtld can not access TLS too early, thus rtld_errno.
> + *
> + * Instead of making __open/__close pass errno from TLS to rtld_errno, simply
> + * use a weak __errno_location using rtld_errno, which will be overriden by the
> + * libc definition.
> + */
We don't use leading '*' on each line of comments.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list