3 void *tp = __builtin_thread_pointer (); \
4 __asm__ ("ldr %0, 1f; " \
7 "1: .word " #x "(tpoff); " \
9 : "=&r" (__result) : "r" (tp)); \
14 void *tp = __builtin_thread_pointer (); \
15 __asm__ ("ldr %0, 1f; " \
16 "3: ldr %0, [pc, %0];" \
19 "1: .word " #x "(gottpoff) + (. - 3b - 8); " \
21 : "=&r" (__result) : "r" (tp)); \
27 extern void *__tls_get_addr (void *); \
28 __asm__ ("ldr %0, 2f; " \
29 "1: add %0, pc, %0; " \
31 "2: .word " #x "(tlsldm) + (. - 1b - 8); " \
34 __result = (char *)__tls_get_addr (__result); \
35 __asm__ ("ldr %0, 1f; " \
37 "1: .word " #x "(tlsldo); " \
40 (int *) (__result + __offset); })
44 extern void *__tls_get_addr (void *); \
45 __asm__ ("ldr %0, 2f; " \
46 "1: add %0, pc, %0; " \
48 "2: .word " #x "(tlsgd) + (. - 1b - 8); " \
51 (int *)__tls_get_addr (__result); })