]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ELF_DYNAMIC_RELOCATE): Let elf_machine_runtime_setup() decide if we
authorUlrich Drepper <drepper@redhat.com>
Sat, 24 May 1997 22:50:15 +0000 (22:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 24 May 1997 22:50:15 +0000 (22:50 +0000)
can actually be lazy.

elf/dynamic-link.h

index 1d134ddf2fc6cb18236baa8a1e641443c0d9e798..da63633361d94edeff6876ced14b616aa5e23b52 100644 (file)
@@ -97,8 +97,11 @@ elf_get_dynamic_info (ElfW(Dyn) *dyn,
 
 /* This can't just be an inline function because GCC is too dumb
    to inline functions containing inlines themselves.  */
-#define ELF_DYNAMIC_RELOCATE(map, lazy) \
-  do { ELF_DYNAMIC_DO_REL ((map), (lazy)); \
-       ELF_DYNAMIC_DO_RELA ((map), (lazy)); } while (0)
+#define ELF_DYNAMIC_RELOCATE(map, lazy)                                \
+  do {                                                         \
+    int edr_lazy = elf_machine_runtime_setup((map), (lazy));   \
+    ELF_DYNAMIC_DO_REL ((map), edr_lazy);                      \
+    ELF_DYNAMIC_DO_RELA ((map), edr_lazy);                     \
+  } while (0)
 
 #endif