about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-09-28 11:30:57 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-09-28 11:30:57 -0700
commit9bac1d8624d3c628b473e20823fb5a154896714c (patch)
tree356a68e4d3536074b0a59e1c8b0e525f7e07eae2 /sysdeps/generic
parent25f5f885c6c0cec20554ca7b6c71fd1b7b50f51c (diff)
downloadglibc-9bac1d8624d3c628b473e20823fb5a154896714c.tar.gz
glibc-9bac1d8624d3c628b473e20823fb5a154896714c.tar.xz
glibc-9bac1d8624d3c628b473e20823fb5a154896714c.zip
Define VERSYMIDX/VALIDX/ADDRIDX in ldsodefs.h
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/ldsodefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 72048eab7f..c667e34244 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -41,6 +41,12 @@
 
 __BEGIN_DECLS
 
+#define VERSYMIDX(sym)	(DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX (sym))
+#define VALIDX(tag)	(DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM \
+			 + DT_EXTRANUM + DT_VALTAGIDX (tag))
+#define ADDRIDX(tag)	(DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM \
+			 + DT_EXTRANUM + DT_VALNUM + DT_ADDRTAGIDX (tag))
+
 /* We use this macro to refer to ELF types independent of the native wordsize.
    `ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'.  */
 #define ELFW(type)	_ElfW (ELF, __ELF_NATIVE_CLASS, type)