in _rtld_bind() initialise result to appease GCC4.
This commit is contained in:
parent
afda9ed915
commit
82f7733046
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: mdreloc.c,v 1.19 2005/08/20 19:01:17 skrll Exp $ */
|
||||
/* $NetBSD: mdreloc.c,v 1.20 2006/05/20 07:09:44 mrg Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mdreloc.c,v 1.19 2005/08/20 19:01:17 skrll Exp $");
|
||||
__RCSID("$NetBSD: mdreloc.c,v 1.20 2006/05/20 07:09:44 mrg Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -194,6 +194,8 @@ _rtld_bind(const Obj_Entry *obj, Elf_Word reloff)
|
|||
Elf_Addr result;
|
||||
int err;
|
||||
|
||||
result = 0; /* XXX gcc */
|
||||
|
||||
err = _rtld_relocate_plt_object(obj, rela, &result);
|
||||
if (err)
|
||||
_rtld_die();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mdreloc.c,v 1.38 2005/12/24 20:59:31 perry Exp $ */
|
||||
/* $NetBSD: mdreloc.c,v 1.39 2006/05/20 07:09:44 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mdreloc.c,v 1.38 2005/12/24 20:59:31 perry Exp $");
|
||||
__RCSID("$NetBSD: mdreloc.c,v 1.39 2006/05/20 07:09:44 mrg Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <errno.h>
|
||||
|
@ -331,6 +331,8 @@ _rtld_bind(const Obj_Entry *obj, Elf_Word reloff)
|
|||
Elf_Addr value;
|
||||
int err;
|
||||
|
||||
value = 0; /* XXX gcc */
|
||||
|
||||
err = _rtld_relocate_plt_object(obj, rela, &value);
|
||||
if (err)
|
||||
_rtld_die();
|
||||
|
|
Loading…
Reference in New Issue