summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/mips/dl-tls.h
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-01-25 14:42:00 -0800
committerKhem Raj <raj.khem@gmail.com>2010-01-25 14:42:00 -0800
commitb7b81eb5484d1a37d8672e7be2aa4462df5d0aaf (patch)
treef4ac7e3d337c2a63d263df16392d4c6020aea509 /libpthread/nptl/sysdeps/mips/dl-tls.h
parent742c1b5f14aebb2ff73e3192661cb09ca58b8ab1 (diff)
mips/dl-tls.h: Adjust TLS_TPREL_VALUE and TLS_DTPREL_VALUE
* Symbol values are passed in directly into these macros instead of the symbol structure. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/mips/dl-tls.h')
-rw-r--r--libpthread/nptl/sysdeps/mips/dl-tls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpthread/nptl/sysdeps/mips/dl-tls.h b/libpthread/nptl/sysdeps/mips/dl-tls.h
index 6d3ed6f5a..3ad3b2bc0 100644
--- a/libpthread/nptl/sysdeps/mips/dl-tls.h
+++ b/libpthread/nptl/sysdeps/mips/dl-tls.h
@@ -33,12 +33,12 @@ typedef struct
#define TLS_DTV_OFFSET 0x8000
/* Compute the value for a GOTTPREL reloc. */
-#define TLS_TPREL_VALUE(sym_map, sym) \
- ((sym_map)->l_tls_offset + (sym)->st_value - TLS_TP_OFFSET)
+#define TLS_TPREL_VALUE(sym_map, sym_val) \
+ ((sym_map)->l_tls_offset + sym_val - TLS_TP_OFFSET)
/* Compute the value for a DTPREL reloc. */
-#define TLS_DTPREL_VALUE(sym) \
- ((sym)->st_value - TLS_DTV_OFFSET)
+#define TLS_DTPREL_VALUE(sym_val) \
+ (sym_val - TLS_DTV_OFFSET)
extern void *__tls_get_addr (tls_index *ti);