]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
R_PARISC_TLS_DTPOFF32 reloc handling
authorAlan Modra <amodra@gmail.com>
Sat, 21 Apr 2018 03:11:29 +0000 (12:41 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 12 May 2018 23:02:28 +0000 (08:32 +0930)
* sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
R_PARISC_TLS_DTPOFF32 reloc addend.

ChangeLog
sysdeps/hppa/dl-machine.h

index fb2f6e93d6bef5527f2d23b9e056e22341d68b42..909dd9052438e7c257cc64565d40e19db95a4355 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-13  Alan Modra  <amodra@gmail.com>
+
+       * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
+       R_PARISC_TLS_DTPOFF32 reloc addend.
+
 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
 
        * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
index 3a57c7eb9dae1ce7c9191ba73f660f3b35b1b035..5f4e0d3823bb6b65537591a4ead09117e86b8547 100644 (file)
@@ -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: