This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
R_PARISC_TLS_DTPOFF32 reloc handling
- From: Alan Modra <amodra at gmail dot com>
- To: libc-alpha at sourceware dot org
- Cc: Carlos O'Donell <carlos at redhat dot com>
- Date: Sat, 21 Apr 2018 13:06:17 +0930
- Subject: R_PARISC_TLS_DTPOFF32 reloc handling
This is the trivial patch mentioned in
https://sourceware.org/ml/binutils/2018-04/msg00237.html
OK to apply?
diff --git a/ChangeLog b/ChangeLog
index 6b17507..cda8bb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-04-21 Alan Modra <amodra@gmail.com>
+
+ * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
+ R_PARISC_TLS_DTPOFF32 reloc addend.
+
2018-04-20 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
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:
--
Alan Modra
Australia Development Lab, IBM