aboutsummaryrefslogtreecommitdiff
path: root/elf/do-rel.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-09-28 04:29:49 +0000
committerUlrich Drepper <drepper@redhat.com>2002-09-28 04:29:49 +0000
commit0e312a828297d11d5eee354bbf8a564c6f12c0d4 (patch)
tree906cb9d0deee25ed26c69614726952efdad14e53 /elf/do-rel.h
parent2c536abd23084ca04a7dc0a8b4ec1e5d23088c45 (diff)
downloadglibc-0e312a828297d11d5eee354bbf8a564c6f12c0d4.zip
glibc-0e312a828297d11d5eee354bbf8a564c6f12c0d4.tar.gz
glibc-0e312a828297d11d5eee354bbf8a564c6f12c0d4.tar.bz2
Define macro DO_ELF_MACHINE_REL_RELATIVE for 'elf_machine_rel_relative'. (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro instead of 'elf_machine_rel_relative'.
Diffstat (limited to 'elf/do-rel.h')
-rw-r--r--elf/do-rel.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/elf/do-rel.h b/elf/do-rel.h
index c693b6f..9ebffd8 100644
--- a/elf/do-rel.h
+++ b/elf/do-rel.h
@@ -30,6 +30,12 @@
# define RELCOUNT_IDX VERSYMIDX (DT_RELCOUNT)
#endif
+#ifndef DO_ELF_MACHINE_REL_RELATIVE
+# define DO_ELF_MACHINE_REL_RELATIVE(map, l_addr, relative) \
+ elf_machine_rel_relative (l_addr, relative, \
+ (void *) (l_addr + relative->r_offset))
+#endif
+
#ifndef VERSYMIDX
# define VERSYMIDX(sym) (DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX (sym))
#endif
@@ -96,8 +102,7 @@ elf_dynamic_do_rel (struct link_map *map,
# endif
#endif
for (; relative < r; ++relative)
- elf_machine_rel_relative (l_addr, relative,
- (void *) (l_addr + relative->r_offset));
+ DO_ELF_MACHINE_REL_RELATIVE (map, l_addr, relative);
#ifdef RTLD_BOOTSTRAP
/* The dynamic linker always uses versioning. */
@@ -130,4 +135,5 @@ elf_dynamic_do_rel (struct link_map *map,
#undef Rel
#undef elf_machine_rel
#undef elf_machine_rel_relative
+#undef DO_ELF_MACHINE_REL_RELATIVE
#undef RELCOUNT_IDX