Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Make kobj_sym_lookup's result type an Elf_Addr.



details:   https://anonhg.NetBSD.org/src/rev/21ce0a5b1214
branches:  trunk
changeset: 827594:21ce0a5b1214
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Nov 04 12:14:41 2017 +0000

description:
Make kobj_sym_lookup's result type an Elf_Addr.
Fixes the arm builds.

diffstat:

 sys/kern/subr_kobj.c |  6 +++---
 sys/sys/kobj.h       |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 677e732d82f3 -r 21ce0a5b1214 sys/kern/subr_kobj.c
--- a/sys/kern/subr_kobj.c      Sat Nov 04 10:26:14 2017 +0000
+++ b/sys/kern/subr_kobj.c      Sat Nov 04 12:14:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_kobj.c,v 1.63 2017/11/03 09:59:07 maxv Exp $      */
+/*     $NetBSD: subr_kobj.c,v 1.64 2017/11/04 12:14:41 martin Exp $    */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kobj.c,v 1.63 2017/11/03 09:59:07 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kobj.c,v 1.64 2017/11/04 12:14:41 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -874,7 +874,7 @@
  *     is known (ie during relocation).
  */
 int
-kobj_sym_lookup(kobj_t ko, uintptr_t symidx, uintptr_t *val)
+kobj_sym_lookup(kobj_t ko, uintptr_t symidx, Elf_Addr *val)
 {
        const Elf_Sym *sym;
        const char *symbol;
diff -r 677e732d82f3 -r 21ce0a5b1214 sys/sys/kobj.h
--- a/sys/sys/kobj.h    Sat Nov 04 10:26:14 2017 +0000
+++ b/sys/sys/kobj.h    Sat Nov 04 12:14:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kobj.h,v 1.17 2017/11/03 09:59:07 maxv Exp $   */
+/*     $NetBSD: kobj.h,v 1.18 2017/11/04 12:14:41 martin Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
 int            kobj_find_section(kobj_t, const char *, void **, size_t *);
 
 /* MI-MD interface. */
-int            kobj_sym_lookup(kobj_t, uintptr_t, uintptr_t *);
+int            kobj_sym_lookup(kobj_t, uintptr_t, Elf_Addr *);
 int            kobj_reloc(kobj_t, uintptr_t, const void *, bool, bool);
 int            kobj_machdep(kobj_t, void *, size_t, bool);
 



Home | Main Index | Thread Index | Old Index