Module Name:    src
Committed By:   joerg
Date:           Tue Jun 20 13:45:20 UTC 2017

Modified Files:
        src/libexec/ld.elf_so/arch/sh3: mdreloc.c

Log Message:
Add last_symnum, move up def and defobj.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/libexec/ld.elf_so/arch/sh3/mdreloc.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/sh3/mdreloc.c
diff -u src/libexec/ld.elf_so/arch/sh3/mdreloc.c:1.33 src/libexec/ld.elf_so/arch/sh3/mdreloc.c:1.34
--- src/libexec/ld.elf_so/arch/sh3/mdreloc.c:1.33	Mon Jun 19 11:57:02 2017
+++ src/libexec/ld.elf_so/arch/sh3/mdreloc.c	Tue Jun 20 13:45:20 2017
@@ -1,8 +1,8 @@
-/*	$NetBSD: mdreloc.c,v 1.33 2017/06/19 11:57:02 joerg Exp $	*/
+/*	$NetBSD: mdreloc.c,v 1.34 2017/06/20 13:45:20 joerg Exp $	*/
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.33 2017/06/19 11:57:02 joerg Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.34 2017/06/20 13:45:20 joerg Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -52,11 +52,12 @@ int
 _rtld_relocate_nonplt_objects(Obj_Entry *obj)
 {
 	const Elf_Rela *rela;
+	const Elf_Sym   *def = NULL;
+	const Obj_Entry *defobj = NULL;
+	unsigned long last_symnum = ULONG_MAX;
 
 	for (rela = obj->rela; rela < obj->relalim; rela++) {
 		Elf_Addr        *where;
-		const Elf_Sym   *def;
-		const Obj_Entry *defobj;
 		Elf_Addr         tmp;
 		unsigned long	 symnum;
 

Reply via email to