diff options
| author | skrll <skrll@NetBSD.org> | 2010-01-14 11:57:06 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2010-01-14 11:57:06 +0000 |
| commit | c2796a5929499ceedbfbf4d241ae5beed2aad8bf (patch) | |
| tree | 169d2fdf9932bdde32979444da65708196f9ecab /libexec | |
| parent | f5b7520428d3d55b9c3fd3fff9d038c88aab82b8 (diff) | |
Shut gcc up.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.elf_so/arch/alpha/alpha_reloc.c | 6 | ||||
| -rw-r--r-- | libexec/ld.elf_so/arch/arm/mdreloc.c | 6 | ||||
| -rw-r--r-- | libexec/ld.elf_so/arch/hppa/hppa_reloc.c | 6 | ||||
| -rw-r--r-- | libexec/ld.elf_so/arch/mips/mips_reloc.c | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/libexec/ld.elf_so/arch/alpha/alpha_reloc.c b/libexec/ld.elf_so/arch/alpha/alpha_reloc.c index a183e3e1bda..edbb3ff058d 100644 --- a/libexec/ld.elf_so/arch/alpha/alpha_reloc.c +++ b/libexec/ld.elf_so/arch/alpha/alpha_reloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: alpha_reloc.c,v 1.34 2010/01/13 20:17:21 christos Exp $ */ +/* $NetBSD: alpha_reloc.c,v 1.35 2010/01/14 11:57:06 skrll Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -62,7 +62,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: alpha_reloc.c,v 1.34 2010/01/13 20:17:21 christos Exp $"); +__RCSID("$NetBSD: alpha_reloc.c,v 1.35 2010/01/14 11:57:06 skrll Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -480,7 +480,7 @@ _rtld_bind(const Obj_Entry *obj, Elf_Word reloff) { const Elf_Rela *rela = (const Elf_Rela *)((const uint8_t *)obj->pltrela + reloff); - Elf_Addr result; + Elf_Addr result = 0; /* XXX gcc */ int err; err = _rtld_relocate_plt_object(obj, rela, &result); diff --git a/libexec/ld.elf_so/arch/arm/mdreloc.c b/libexec/ld.elf_so/arch/arm/mdreloc.c index 7e552f8672e..5271ffced2a 100644 --- a/libexec/ld.elf_so/arch/arm/mdreloc.c +++ b/libexec/ld.elf_so/arch/arm/mdreloc.c @@ -1,8 +1,8 @@ -/* $NetBSD: mdreloc.c,v 1.31 2010/01/13 20:17:22 christos Exp $ */ +/* $NetBSD: mdreloc.c,v 1.32 2010/01/14 11:57:06 skrll Exp $ */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: mdreloc.c,v 1.31 2010/01/13 20:17:22 christos Exp $"); +__RCSID("$NetBSD: mdreloc.c,v 1.32 2010/01/14 11:57:06 skrll Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -253,7 +253,7 @@ caddr_t _rtld_bind(const Obj_Entry *obj, Elf_Word reloff) { const Elf_Rel *rel = (const Elf_Rel *)((const uint8_t *)obj->pltrel + reloff); - Elf_Addr new_value; + Elf_Addr new_value = 0; /* XXX gcc */ int err; err = _rtld_relocate_plt_object(obj, rel, &new_value); diff --git a/libexec/ld.elf_so/arch/hppa/hppa_reloc.c b/libexec/ld.elf_so/arch/hppa/hppa_reloc.c index e792cb52e5d..a252c8fc497 100644 --- a/libexec/ld.elf_so/arch/hppa/hppa_reloc.c +++ b/libexec/ld.elf_so/arch/hppa/hppa_reloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: hppa_reloc.c,v 1.31 2010/01/13 20:17:22 christos Exp $ */ +/* $NetBSD: hppa_reloc.c,v 1.32 2010/01/14 11:57:06 skrll Exp $ */ /*- * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hppa_reloc.c,v 1.31 2010/01/13 20:17:22 christos Exp $"); +__RCSID("$NetBSD: hppa_reloc.c,v 1.32 2010/01/14 11:57:06 skrll Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -590,7 +590,7 @@ caddr_t _rtld_bind(const Obj_Entry *obj, Elf_Word reloff) { const Elf_Rela *rela; - Elf_Addr new_value; + Elf_Addr new_value = 0; /* XXX gcc */ int err; rela = (const Elf_Rela *)((const char *)obj->pltrela + reloff); diff --git a/libexec/ld.elf_so/arch/mips/mips_reloc.c b/libexec/ld.elf_so/arch/mips/mips_reloc.c index 3ba697dfe90..c9d359dd32e 100644 --- a/libexec/ld.elf_so/arch/mips/mips_reloc.c +++ b/libexec/ld.elf_so/arch/mips/mips_reloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips_reloc.c,v 1.57 2010/01/13 20:17:22 christos Exp $ */ +/* $NetBSD: mips_reloc.c,v 1.58 2010/01/14 11:57:06 skrll Exp $ */ /* * Copyright 1997 Michael L. Hitch <mhitch@montana.edu> @@ -30,7 +30,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: mips_reloc.c,v 1.57 2010/01/13 20:17:22 christos Exp $"); +__RCSID("$NetBSD: mips_reloc.c,v 1.58 2010/01/14 11:57:06 skrll Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -428,7 +428,7 @@ _rtld_bind(Elf_Word a0, Elf_Addr a1, Elf_Addr a2, Elf_Addr a3) { 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); |
