summaryrefslogtreecommitdiff
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
commit91145a1c10c18b8614b3c3c55ad9c43621ffc341 (patch)
treea262b5543f1b1538f91c6eea5568fe9ce97307cc /bfd/elf32-i386.c
parent7e0ead2df29ba341ddcdd6b8a8fb9256e0f429c6 (diff)
downloadgdb-91145a1c10c18b8614b3c3c55ad9c43621ffc341.tar.gz
* 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 ac9f98e2be4..ef22e68e235 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,