[18/21] ARC: testsuite fix: GD TLS issue
Commit Message
From: Cupertino Miranda <cmiranda@synopsys.com>
Offset set by the linker in the GOT entries would be overwritten by the dynamic
loader instead of added to the symbol location.
Other target have the same approach on DTSOFF relocs.
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
ChangeLog | 4 ++++
sysdeps/arc/dl-machine.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
@@ -1,3 +1,7 @@
+2018-12-17 Cupertino Miranda <cmiranda@synopsys.com>
+
+ * sysdeps/arc/dl-machine.h: Fix relocation.
+
2018-12-17 Vineet Gupta <vgupta@synopsys.com>
* sysdeps/unix/make-syscalls.sh: Fix comment referencing
@@ -290,7 +290,7 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
case R_ARC_TLS_DTPOFF:
if (sym != NULL)
{
- *reloc_addr = sym->st_value;
+ *reloc_addr += sym->st_value;
}
break;