summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-09-17 09:52:41 +0000
committerJakub Jelinek <jakub@redhat.com>2002-09-17 09:52:41 +0000
commitf77275bcc96eecded4014e6b3f0340ad5d590db6 (patch)
treeaa563bc0251cfa7ce9d89bf5a2408e22c71a5e8c /bfd
parentffad2073e43e37afb5b011b3d6b894b5cc213c75 (diff)
downloadbinutils-redhat-f77275bcc96eecded4014e6b3f0340ad5d590db6.tar.gz
* elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-i386.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2d9f44e36b..5d31f002c4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-17 Jakub Jelinek <jakub@redhat.com>
+
+ * elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.
+
2002-09-17 Alan Modra <amodra@bigpond.net.au>
* elf64-alpha.c (alpha_elf_size_info): Make static.
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index ac9f98e2be..ef22e68e23 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -2579,7 +2579,7 @@ elf_i386_relocate_section (output_bfd, info, input_bfd, input_section,
else
dr_type = R_386_TLS_TPOFF32;
if (dr_type == R_386_TLS_TPOFF32 && indx == 0)
- bfd_put_32 (output_bfd, relocation - dtpoff_base (info),
+ bfd_put_32 (output_bfd, dtpoff_base (info) - relocation,
htab->sgot->contents + off);
else
bfd_put_32 (output_bfd, 0,