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 Shut gcc up.



details:   https://anonhg.NetBSD.org/src/rev/756bd46948f6
branches:  trunk
changeset: 750785:756bd46948f6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jan 14 11:57:06 2010 +0000

description:
Shut gcc up.

diffstat:

 libexec/ld.elf_so/arch/alpha/alpha_reloc.c |  6 +++---
 libexec/ld.elf_so/arch/arm/mdreloc.c       |  6 +++---
 libexec/ld.elf_so/arch/hppa/hppa_reloc.c   |  6 +++---
 libexec/ld.elf_so/arch/mips/mips_reloc.c   |  6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diffs (104 lines):

diff -r d9237aa0db42 -r 756bd46948f6 libexec/ld.elf_so/arch/alpha/alpha_reloc.c
--- a/libexec/ld.elf_so/arch/alpha/alpha_reloc.c        Thu Jan 14 11:27:52 2010 +0000
+++ b/libexec/ld.elf_so/arch/alpha/alpha_reloc.c        Thu Jan 14 11:57:06 2010 +0000
@@ -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 @@
 {
        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 -r d9237aa0db42 -r 756bd46948f6 libexec/ld.elf_so/arch/arm/mdreloc.c
--- a/libexec/ld.elf_so/arch/arm/mdreloc.c      Thu Jan 14 11:27:52 2010 +0000
+++ b/libexec/ld.elf_so/arch/arm/mdreloc.c      Thu Jan 14 11:57:06 2010 +0000
@@ -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 @@
 _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 -r d9237aa0db42 -r 756bd46948f6 libexec/ld.elf_so/arch/hppa/hppa_reloc.c
--- a/libexec/ld.elf_so/arch/hppa/hppa_reloc.c  Thu Jan 14 11:27:52 2010 +0000
+++ b/libexec/ld.elf_so/arch/hppa/hppa_reloc.c  Thu Jan 14 11:57:06 2010 +0000
@@ -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 @@
 _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 -r d9237aa0db42 -r 756bd46948f6 libexec/ld.elf_so/arch/mips/mips_reloc.c
--- a/libexec/ld.elf_so/arch/mips/mips_reloc.c  Thu Jan 14 11:27:52 2010 +0000
+++ b/libexec/ld.elf_so/arch/mips/mips_reloc.c  Thu Jan 14 11:57:06 2010 +0000
@@ -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@localhost>
@@ -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 @@
 {
        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);



Home | Main Index | Thread Index | Old Index