OSDN Git Service

bfd/
authorJakub Jelinek <jakub@redhat.com>
Tue, 1 Oct 2002 10:43:36 +0000 (10:43 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 1 Oct 2002 10:43:36 +0000 (10:43 +0000)
* elf32-i386.c (elf_i386_relocate_section): Fix
movl foo@indntpoff, %eax IE->LE transition.
ld/testsuite/
* ld-i386/i386.exp: Add tlsindntpoff test.
* ld-i386/tlsindntpoff.s: New test.
* ld-i386/tlsindntpoff.dd: New test.

bfd/ChangeLog
bfd/elf32-i386.c

index a005887..90d90d2 100644 (file)
@@ -1,5 +1,10 @@
 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
 
+       * elf32-i386.c (elf_i386_relocate_section): Fix
+       movl foo@indntpoff, %eax IE->LE transition.
+
+2002-10-01  Jakub Jelinek  <jakub@redhat.com>
+
        * elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
        sequence and its transitions.
 
index 6bd277e..87e1e76 100644 (file)
@@ -2625,7 +2625,7 @@ elf_i386_relocate_section (output_bfd, info, input_bfd, input_section,
                  if (val == 0xa1)
                    {
                      /* movl foo, %eax.  */
-                     bfd_put_8 (output_bfd, 0xb8, contents + rel->r_offset - 2);
+                     bfd_put_8 (output_bfd, 0xb8, contents + rel->r_offset - 1);
                    }
                  else if (type == 0x8b)
                    {