Module Name: src Committed By: christos Date: Mon Jul 16 00:29:37 UTC 2018
Modified Files: src/libexec/ld.elf_so/arch/aarch64: mdreloc.c Log Message: Initialize new_value to account for bogus return from the function. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/libexec/ld.elf_so/arch/aarch64/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/aarch64/mdreloc.c diff -u src/libexec/ld.elf_so/arch/aarch64/mdreloc.c:1.7 src/libexec/ld.elf_so/arch/aarch64/mdreloc.c:1.8 --- src/libexec/ld.elf_so/arch/aarch64/mdreloc.c:1.7 Sun Feb 4 16:49:51 2018 +++ src/libexec/ld.elf_so/arch/aarch64/mdreloc.c Sun Jul 15 20:29:37 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: mdreloc.c,v 1.7 2018/02/04 21:49:51 skrll Exp $ */ +/* $NetBSD: mdreloc.c,v 1.8 2018/07/16 00:29:37 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: mdreloc.c,v 1.7 2018/02/04 21:49:51 skrll Exp $"); +__RCSID("$NetBSD: mdreloc.c,v 1.8 2018/07/16 00:29:37 christos Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -311,7 +311,7 @@ Elf_Addr _rtld_bind(const Obj_Entry *obj, Elf_Word relaidx) { const Elf_Rela *rela = obj->pltrela + relaidx; - Elf_Addr new_value; + Elf_Addr new_value = 0; _rtld_shared_enter(); int err = _rtld_relocate_plt_object(obj, rela, &new_value);