about summary refs log tree commit diff
path: root/include/link.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-22 10:17:05 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-03-22 10:17:05 -0700
commit81b035fe638d677f90200598294d15811dcccf68 (patch)
tree651404fe8af2239f0a2de8c3553f351245ec220e /include/link.h
parent1da7940c77153881471f01d0510abb392aa164c5 (diff)
downloadglibc-81b035fe638d677f90200598294d15811dcccf68.tar.gz
glibc-81b035fe638d677f90200598294d15811dcccf68.tar.xz
glibc-81b035fe638d677f90200598294d15811dcccf68.zip
Replace Elf64_XXX with ElfW(XXX) in dl-irel.h
Diffstat (limited to 'include/link.h')
-rw-r--r--include/link.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h
index c5265ee16f..2eb3179475 100644
--- a/include/link.h
+++ b/include/link.h
@@ -330,4 +330,9 @@ extern int __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
 					       size_t size, void *data),
 			      void *data);
 
+/* We use this macro to refer to ELF macros independent of the native
+   wordsize.  `ELFW(R_TYPE)' is used in place of `ELF32_R_TYPE' or
+   `ELF64_R_TYPE'.  */
+#define ELFW(type)	_ElfW (ELF, __ELF_NATIVE_CLASS, type)
+
 #endif /* include/link.h */