summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/i386/dl-sysdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/i386/dl-sysdep.h b/ldso/ldso/i386/dl-sysdep.h
index ecc7b0b4c..de0e85faa 100644
--- a/ldso/ldso/i386/dl-sysdep.h
+++ b/ldso/ldso/i386/dl-sysdep.h
@@ -76,6 +76,6 @@ elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
do {
Elf32_Addr *const reloc_addr = (void *) (load_off + (++rpnt)->r_offset);
- *reloc_addr = load_off;
+ *reloc_addr += load_off;
} while (--relative_count);
}