]> sourceware.org Git - glibc.git/commitdiff
(elf_machine_rela): Fix last change.
authorUlrich Drepper <drepper@redhat.com>
Sun, 12 Oct 1997 03:41:56 +0000 (03:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 12 Oct 1997 03:41:56 +0000 (03:41 +0000)
The R_68K_GLOB_DAT and R_68K_JMP_SLOT relocations really ignore
the addend, Richard.
(elf_machine_fixup_plt): Don't add the addend.
(elf_machine_plt_value): New function.

sysdeps/m68k/dl-machine.h

index cc0fb56189f50110dfb1b16c935650c7cf1eb35b..1d2045dd87495640edbfec8fa5949b5577778a31 100644 (file)
@@ -223,7 +223,16 @@ static inline void
 elf_machine_fixup_plt (struct link_map *map, const Elf32_Rela *reloc,
                       Elf32_Addr *reloc_addr, Elf32_Addr value)
 {
-  *reloc_addr = value + reloc->r_addend;
+  *reloc_addr = value;
+}
+
+/* Return the final value of a plt relocation.  On the m68k the JMP_SLOT
+   relocation ignores the addend.  */
+static inline Elf32_Addr
+elf_machine_plt_value (struct link_map *map, const Elf32_Rela *reloc,
+                      Elf32_Addr value)
+{
+  return value;
 }
 
 #endif /* !dl_machine_h */
@@ -272,7 +281,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
          break;
        case R_68K_GLOB_DAT:
        case R_68K_JMP_SLOT:
-         *reloc_addr = value + reloc->r_addend;
+         *reloc_addr = value;
          break;
        case R_68K_8:
          *(char *) reloc_addr = value + reloc->r_addend;
This page took 0.043541 seconds and 5 git commands to generate.