diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-09-28 11:30:57 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-09-28 11:30:57 -0700 |
commit | 9bac1d8624d3c628b473e20823fb5a154896714c (patch) | |
tree | 356a68e4d3536074b0a59e1c8b0e525f7e07eae2 /sysdeps/generic/ldsodefs.h | |
parent | 25f5f885c6c0cec20554ca7b6c71fd1b7b50f51c (diff) | |
download | glibc-9bac1d8624d3c628b473e20823fb5a154896714c.zip glibc-9bac1d8624d3c628b473e20823fb5a154896714c.tar.gz glibc-9bac1d8624d3c628b473e20823fb5a154896714c.tar.bz2 |
Define VERSYMIDX/VALIDX/ADDRIDX in ldsodefs.h
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 72048ea..c667e34 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) |