From c5c1f40c2629d1fa617df6a9eb46e27970200046 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 17 Sep 2002 09:52:41 +0000 Subject: * elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend. --- 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 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, -- cgit v1.1