aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-20 14:56:45 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-20 14:56:45 +0000
commit3e3649f6e281d7a3b8c69e3484bb06a2d60a23e6 (patch)
tree4fa768d69e5d2013fe72263787df50857c1f8a93 /sysdeps/alpha
parent1d32500284b17fa9b559dcc9f40663e8025560ce (diff)
downloadglibc-3e3649f6e281d7a3b8c69e3484bb06a2d60a23e6.tar
glibc-3e3649f6e281d7a3b8c69e3484bb06a2d60a23e6.tar.gz
glibc-3e3649f6e281d7a3b8c69e3484bb06a2d60a23e6.tar.bz2
glibc-3e3649f6e281d7a3b8c69e3484bb06a2d60a23e6.zip
(elf_machine_fixup_plt): DT_JMPREL and DT_PLTGOT entries are already
relocated. (elf_machine_rela): Likewise for DT_SYMTAB.
Diffstat (limited to 'sysdeps/alpha')
-rw-r--r--sysdeps/alpha/dl-machine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/alpha/dl-machine.h b/sysdeps/alpha/dl-machine.h
index d351e9dccc..6e11380774 100644
--- a/sysdeps/alpha/dl-machine.h
+++ b/sysdeps/alpha/dl-machine.h
@@ -1,5 +1,5 @@
/* Machine-dependent ELF dynamic relocation inline functions. Alpha version.
- Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson <rth@tamu.edu>.
@@ -350,8 +350,8 @@ elf_machine_fixup_plt(struct link_map *l, const Elf64_Rela *reloc,
/* Recover the PLT entry address by calculating reloc's index into the
.rela.plt, and finding that entry in the .plt. */
- rela_plt = (void *)(l->l_addr + l->l_info[DT_JMPREL]->d_un.d_ptr);
- plte = (void *)(l->l_addr + l->l_info[DT_PLTGOT]->d_un.d_ptr + 32);
+ rela_plt = (void *) l->l_info[DT_JMPREL]->d_un.d_ptr;
+ plte = (void *) (l->l_info[DT_PLTGOT]->d_un.d_ptr + 32);
plte += 3 * (reloc - rela_plt);
/* Find the displacement from the plt entry to the function. */
@@ -481,7 +481,7 @@ elf_machine_rela (struct link_map *map,
than the dynamic linker's built-in definitions used
while loading those libraries. */
const Elf64_Sym *const dlsymtab
- = (void *)(map->l_addr + map->l_info[DT_SYMTAB]->d_un.d_ptr);
+ = (void *) map->l_info[DT_SYMTAB]->d_un.d_ptr;
sym_value -= map->l_addr;
sym_value -= dlsymtab[ELF64_R_SYM(reloc->r_info)].st_value;
sym_value -= reloc->r_addend;