From: Mark Seaborn Date: Thu, 28 Jan 2010 13:08:30 +0000 (+0000) Subject: Mark __libc_resp with attribute_tls_model_ie for consistency with __resp X-Git-Url: https://repo.or.cz/w/glibc/nacl-glibc.git/commitdiff_plain/2a55711b1621b4b70161286f02addb9b68a84f36 Mark __libc_resp with attribute_tls_model_ie for consistency with __resp This stops the linker from doing a link-time rewrite from a General Dynamic TLS access to a Initial Exec TLS access. Rewriting GD sequences doesn't work properly under NaCl at the moment. --- diff --git a/resolv/res_libc.c b/resolv/res_libc.c index 8af57f7a4a..cbc6b15793 100644 --- a/resolv/res_libc.c +++ b/resolv/res_libc.c @@ -131,7 +131,7 @@ struct __res_state _res __attribute__((section (".bss"))); #undef __resp __thread struct __res_state *__resp = &_res; extern __thread struct __res_state *__libc_resp - __attribute__ ((alias ("__resp"))) attribute_hidden; + __attribute__ ((alias ("__resp"))) attribute_hidden attribute_tls_model_ie; #endif /* We declare this with compat_symbol so that it's not