From 2a55711b1621b4b70161286f02addb9b68a84f36 Mon Sep 17 00:00:00 2001 From: Mark Seaborn Date: Thu, 28 Jan 2010 13:08:30 +0000 Subject: [PATCH] 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. --- resolv/res_libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT