From 7c445aa3c80222dfc679ab112c864d674b805ec3 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 1 Oct 2002 10:43:37 +0000 Subject: bfd/ * 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/elf32-i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf32-i386.c') diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 6bd277e..87e1e76 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -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) { -- cgit v1.1