From b0cf070b98234cf46009b9be18d379ac3ed7215a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 28 Aug 1998 22:54:57 +0000 Subject: Update. 1998-08-28 22:49 Ulrich Drepper * 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 --- elf/do-rel.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'elf/do-rel.h') diff --git a/elf/do-rel.h b/elf/do-rel.h index 2e0f26bd05..c0f48241bf 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 = -- cgit v1.2.3