[git commit nptl] mips/dl-tls.h: Adjust TLS_TPREL_VALUE and TLS_DTPREL_VALUE

Khem Raj raj.khem at gmail.com
Mon Jan 25 22:24:26 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=b7b81eb5484d1a37d8672e7be2aa4462df5d0aaf
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

* Symbol values are passed in directly into these macros
  instead of the symbol structure.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 libpthread/nptl/sysdeps/mips/dl-tls.h |    8 ++++----
 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 6d3ed6f..3ad3b2b 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);
 
-- 
1.6.3.3



More information about the uClibc-cvs mailing list