From 0937e209a7080d52cf7e5a6605532ea081a542ff Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 21 Apr 2018 12:41:29 +0930 Subject: R_PARISC_TLS_DTPOFF32 reloc handling * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add R_PARISC_TLS_DTPOFF32 reloc addend. --- sysdeps/hppa/dl-machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/hppa') diff --git a/sysdeps/hppa/dl-machine.h b/sysdeps/hppa/dl-machine.h index 3a57c7e..5f4e0d3 100644 --- a/sysdeps/hppa/dl-machine.h +++ b/sysdeps/hppa/dl-machine.h @@ -690,7 +690,7 @@ elf_machine_rela (struct link_map *map, /* During relocation all TLS symbols are defined and used. Therefore the offset is already correct. */ if (sym != NULL) - *reloc_addr = sym->st_value; + *reloc_addr = sym->st_value + reloc->r_addend; return; case R_PARISC_TLS_TPREL32: -- cgit v1.1