aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
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
commitc5c1f40c2629d1fa617df6a9eb46e27970200046 (patch)
tree21df43461058d93bf55011cb2ff7310770248680 /bfd/elf32-i386.c
parenta6588c30046d139ff09539f86f42018c1772737f (diff)
downloadgdb-c5c1f40c2629d1fa617df6a9eb46e27970200046.zip
gdb-c5c1f40c2629d1fa617df6a9eb46e27970200046.tar.gz
gdb-c5c1f40c2629d1fa617df6a9eb46e27970200046.tar.bz2
* elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index ac9f98e..ef22e68 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,