From: Roland McGrath Date: Tue, 25 Jun 1996 03:59:46 +0000 (+0000) Subject: Mon Jun 24 22:39:12 1996 Richard Henderson X-Git-Tag: glibc-2.16-ports-before-merge~3767 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4c90a421a573d2b7ca88896a851deeaa0cac447;p=thirdparty%2Fglibc.git Mon Jun 24 22:39:12 1996 Richard Henderson * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): A .plt entry now loads the .rela.plt offset directly rather than making us calculate it. --- diff --git a/sysdeps/alpha/dl-machine.h b/sysdeps/alpha/dl-machine.h index 29c9a1dd129..f23efe7fcb9 100644 --- a/sysdeps/alpha/dl-machine.h +++ b/sysdeps/alpha/dl-machine.h @@ -307,10 +307,8 @@ _dl_runtime_resolve: /* Set up the arguments for _dl_runtime_resolve. */ /* $16 = link_map out of plt0 */ ldq $16, 8($27) - /* $17 = (($28 - 4) - ($27 + 16)) / 12 * sizeof(Elf_Rela) */ - subq $28, $27, $28 - subq $28, 20, $28 - addq $28, $28, $17 + /* $17 = offset of reloc entry */ + mov $28, $17 /* Do the fixup */ bsr $26, fixup..ng /* Move the destination address to a safe place. */