aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-28 22:54:57 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-28 22:54:57 +0000
commitb0cf070b98234cf46009b9be18d379ac3ed7215a (patch)
treec12209b28a59382f20ca802520f274fa419f9e8f /elf
parent75311719d35dc0c132e46f883beaeb5b3d9eb75a (diff)
downloadglibc-b0cf070b98234cf46009b9be18d379ac3ed7215a.zip
glibc-b0cf070b98234cf46009b9be18d379ac3ed7215a.tar.gz
glibc-b0cf070b98234cf46009b9be18d379ac3ed7215a.tar.bz2
Update.
1998-08-28 22:49 Ulrich Drepper <drepper@cygnus.com> * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel with load address, not map address. * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first parameter and use this value. * sysdeps/arm/dl-machine.h: Likewise. * sysdeps/i386/dl-machine.h: Likewise. * sysdeps/m68k/dl-machine.h: Likewise. * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first parameter. * sysdeps/powerpc/dl-machine.h: Likewise * sysdeps/sparc/sparc32/dl-machine.h: Likewise * sysdeps/sparc/sparc64/dl-machine.h: Likewise
Diffstat (limited to 'elf')
-rw-r--r--elf/do-rel.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/elf/do-rel.h b/elf/do-rel.h
index 2e0f26b..c0f4824 100644
--- a/elf/do-rel.h
+++ b/elf/do-rel.h
@@ -1,5 +1,5 @@
/* Do relocations for ELF dynamic linking.
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -44,9 +44,12 @@ elf_dynamic_do_rel (struct link_map *map,
const ElfW(Rel) *end = (const ElfW(Rel) *)(map->l_addr + reladdr + relsize);
if (lazy)
- /* Doing lazy PLT relocations; they need very little info. */
- for (; r < end; ++r)
- elf_machine_lazy_rel (map, r);
+ {
+ /* Doing lazy PLT relocations; they need very little info. */
+ ElfW(Addr) l_addr = map->l_addr;
+ for (; r < end; ++r)
+ elf_machine_lazy_rel (l_addr, r);
+ }
else
{
const ElfW(Sym) *const symtab =