From: Alan Modra Date: Sat, 21 Apr 2018 03:11:29 +0000 (+0930) Subject: R_PARISC_TLS_DTPOFF32 reloc handling X-Git-Tag: glibc-2.28~283 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0937e209a7080d52cf7e5a6605532ea081a542ff;p=thirdparty%2Fglibc.git R_PARISC_TLS_DTPOFF32 reloc handling * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add R_PARISC_TLS_DTPOFF32 reloc addend. --- diff --git a/ChangeLog b/ChangeLog index fb2f6e93d6b..909dd905243 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-05-13 Alan Modra + + * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add + R_PARISC_TLS_DTPOFF32 reloc addend. + 2018-05-11 Tulio Magno Quites Machado Filho * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL. diff --git a/sysdeps/hppa/dl-machine.h b/sysdeps/hppa/dl-machine.h index 3a57c7eb9da..5f4e0d3823b 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: