Module Name:    src
Committed By:   skrll
Date:           Sun Dec  4 16:53:08 UTC 2011

Modified Files:
        src/libexec/ld.elf_so/arch/hppa: hppa_reloc.c

Log Message:
Use the tlsoffset from the correct object.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c
diff -u src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c:1.40 src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c:1.41
--- src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c:1.40	Sun Sep 25 13:34:54 2011
+++ src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c	Sun Dec  4 16:53:08 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: hppa_reloc.c,v 1.40 2011/09/25 13:34:54 chs Exp $	*/
+/*	$NetBSD: hppa_reloc.c,v 1.41 2011/12/04 16:53:08 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hppa_reloc.c,v 1.40 2011/09/25 13:34:54 chs Exp $");
+__RCSID("$NetBSD: hppa_reloc.c,v 1.41 2011/12/04 16:53:08 skrll Exp $");
 #endif /* not lint */
 
 #include <stdlib.h>
@@ -481,7 +481,7 @@ _rtld_relocate_nonplt_objects(Obj_Entry 
 			if (!defobj->tls_done && _rtld_tls_offset_allocate(obj))
 				return -1;
 
-			*where = (Elf_Addr)(obj->tlsoffset + def->st_value +
+			*where = (Elf_Addr)(defobj->tlsoffset + def->st_value +
 			    rela->r_addend + sizeof(struct tls_tcb));
 
 			rdbg(("TPREL32 %s in %s --> %p in %s",

Reply via email to