diff options
Diffstat (limited to 'sysdeps/powerpc/tst-tlsifunc.c')
-rw-r--r-- | sysdeps/powerpc/tst-tlsifunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/tst-tlsifunc.c b/sysdeps/powerpc/tst-tlsifunc.c index 75cfb3e656..681de40afc 100644 --- a/sysdeps/powerpc/tst-tlsifunc.c +++ b/sysdeps/powerpc/tst-tlsifunc.c @@ -21,9 +21,9 @@ #include <stdint.h> #include <inttypes.h> #include <libc-symbols.h> -#include <tls-macros.h> __thread int bar; +extern __thread int bar_gd asm ("bar") __attribute__ ((tls_model("global-dynamic"))); static int *bar_ptr = NULL; static uint32_t resolver_platform = 0; @@ -57,7 +57,7 @@ get_platform (void) void init_foo (void) { - bar_ptr = TLS_GD (bar); + bar_ptr = &bar_gd; } int |