Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so/arch/aarch64 Initialize new_value to accou...
details: https://anonhg.NetBSD.org/src/rev/ba2fd8e97784
branches: trunk
changeset: 320685:ba2fd8e97784
user: christos <christos%NetBSD.org@localhost>
date: Mon Jul 16 00:29:37 2018 +0000
description:
Initialize new_value to account for bogus return from the function.
diffstat:
libexec/ld.elf_so/arch/aarch64/mdreloc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 10b6ee524af7 -r ba2fd8e97784 libexec/ld.elf_so/arch/aarch64/mdreloc.c
--- a/libexec/ld.elf_so/arch/aarch64/mdreloc.c Mon Jul 16 00:08:12 2018 +0000
+++ b/libexec/ld.elf_so/arch/aarch64/mdreloc.c Mon Jul 16 00:29:37 2018 +0000
@@ -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 @@
_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);
Home |
Main Index |
Thread Index |
Old Index