about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/i386/dl-machine.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ec8d131519..618dd3e438 100644
--- 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
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index 546828093f..bdca6bec3b 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -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;