* sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
authorRoland McGrath <roland@gnu.org>
Thu, 12 Oct 1995 09:00:05 +0000 (09:00 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 12 Oct 1995 09:00:05 +0000 (09:00 +0000)
apply R_386_PC32 reloc.

ChangeLog
sysdeps/i386/dl-machine.h

index ec8d131..618dd3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
 
+       * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
+       apply R_386_PC32 reloc.
+
        * Makeconfig (config-LDFLAGS): Add missing slash.
 
        * sysdeps/mach/hurd/profil.c (fork_profil): Only call
index 5468280..bdca6be 100644 (file)
@@ -107,7 +107,7 @@ elf_machine_rel (struct link_map *map,
        *reloc_addr += map->l_addr;
       break;
     case R_386_PC32:
-      *reloc_addr = sym_value - (Elf32_Addr) reloc_addr;
+      *reloc_addr += sym_value - (Elf32_Addr) reloc_addr;
       break;
     case R_386_NONE:           /* Alright, Wilbur.  */
       break;