[git commit] libc/inet/resolv.c: Use IE model for TLS data.

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Aug 4 17:50:12 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=4237cc165cd7447d6798559506adfd339a638dc0
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

All other TLS data in uClibc is explicitly using the IE model,
so use it for __resp too. This generates smaller and faster
code.

Signed-off-by: Will Newton <will.newton at imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/inet/resolv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 2c0caa4..f1e7da7 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -3592,7 +3592,7 @@ struct __res_state _res __attribute__((section (".bss"))) attribute_hidden;
 #  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;
 # else
 #  undef __resp
 struct __res_state *__resp = &_res;


More information about the uClibc-cvs mailing list