summaryrefslogtreecommitdiff
path: root/ldso/ldso/arc/elfinterp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/arc/elfinterp.c')
-rw-r--r--ldso/ldso/arc/elfinterp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/arc/elfinterp.c b/ldso/ldso/arc/elfinterp.c
index a30c19bcb..61029185f 100644
--- a/ldso/ldso/arc/elfinterp.c
+++ b/ldso/ldso/arc/elfinterp.c
@@ -165,7 +165,7 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
*reloc_addr = tls_tpnt->l_tls_modid;
break;
case R_ARC_TLS_DTPOFF:
- *reloc_addr = symbol_addr;
+ *reloc_addr += symbol_addr;
break;
case R_ARC_TLS_TPOFF:
CHECK_STATIC_TLS ((struct link_map *) tls_tpnt);