* elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 Sep 2002 09:52:41 +0000 (09:52 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 17 Sep 2002 09:52:41 +0000 (09:52 +0000)
bfd/ChangeLog
bfd/elf32-i386.c

index 2d9f44e36b23e815394e8e5a424613ff2ee6dbdd..5d31f002c4c6f9fc6ba03ff298715e2963c257de 100644 (file)
@@ -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.
index ac9f98e2be43a4d669fe448de836508f0fcd8c09..ef22e68e23568415cd052b636337f3ea142433c5 100644 (file)
@@ -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,