diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-04-12 07:48:58 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-04-12 07:48:58 +0000 |
commit | 14e44061ad888abbea7239599a9109b41776e41c (patch) | |
tree | 258e74578e51d985048e70482acab48bc5cf591a /elf | |
parent | a346458fa85decb63d2bf237c62f58ca46450c3b (diff) |
Updated to fedora-glibc-20080412T0741cvs/fedora-glibc-2_8-1
Diffstat (limited to 'elf')
-rw-r--r-- | elf/tls-macros.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/elf/tls-macros.h b/elf/tls-macros.h index 37cbe7514f..6463a6c3f9 100644 --- a/elf/tls-macros.h +++ b/elf/tls-macros.h @@ -813,12 +813,17 @@ register void *__gp __asm__("$29"); : "=b" (__result) ); \ __result; \ }) +# ifdef HAVE_ASM_GLOBAL_DOT_NAME +# define __TLS_GET_ADDR ".__tls_get_addr" +# else +# define __TLS_GET_ADDR "__tls_get_addr" +# endif /* PowerPC64 Local Dynamic TLS access. */ # define TLS_LD(x) \ ({ int * __result; \ asm ( \ " addi 3,2," #x "@got@tlsld\n" \ - " bl .__tls_get_addr\n" \ + " bl " __TLS_GET_ADDR "\n" \ " nop \n" \ " addis %0,3," #x "@dtprel@ha\n" \ " addi %0,%0," #x "@dtprel@l\n" \ @@ -834,7 +839,7 @@ register void *__gp __asm__("$29"); ({ int * __result; \ asm ( \ " addi 3,2," #x "@got@tlsgd\n" \ - " bl .__tls_get_addr\n" \ + " bl " __TLS_GET_ADDR "\n" \ " nop \n" \ " mr %0,3\n" \ : "=b" (__result) : \ |