Module Name: src Committed By: bouyer Date: Mon Mar 19 18:46:00 UTC 2012
Modified Files: src/libexec/ld.elf_so/arch/mips [netbsd-5]: mips_reloc.c Log Message: Apply patch, requested by skrll in ticket #1724 libexec/ld.elf_so/arch/mips/mips_reloc.c patch fix gcc uninitialized warning To generate a diff of this commit: cvs rdiff -u -r1.53.4.1 -r1.53.4.2 \ src/libexec/ld.elf_so/arch/mips/mips_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/mips/mips_reloc.c diff -u src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.53.4.1 src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.53.4.2 --- src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.53.4.1 Sat Mar 17 18:28:26 2012 +++ src/libexec/ld.elf_so/arch/mips/mips_reloc.c Mon Mar 19 18:46:00 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: mips_reloc.c,v 1.53.4.1 2012/03/17 18:28:26 bouyer Exp $ */ +/* $NetBSD: mips_reloc.c,v 1.53.4.2 2012/03/19 18:46:00 bouyer Exp $ */ /* * Copyright 1997 Michael L. Hitch <mhi...@montana.edu> @@ -30,7 +30,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: mips_reloc.c,v 1.53.4.1 2012/03/17 18:28:26 bouyer Exp $"); +__RCSID("$NetBSD: mips_reloc.c,v 1.53.4.2 2012/03/19 18:46:00 bouyer Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -358,7 +358,7 @@ _rtld_bind(Elf_Word a0, Elf_Addr a1, Elf { Elf_Addr *got = (Elf_Addr *)(a2 - 0x7ff0); const Obj_Entry *obj = (Obj_Entry *)(got[1] & 0x7fffffff); - Elf_Addr new_value; + Elf_Addr new_value = 0; /* XXX gcc */ int err; err = _rtld_relocate_plt_object(obj, a0, &new_value);