Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Define the ELFSIZE to be KERN_ELFSIZE, since these h...
details: https://anonhg.NetBSD.org/src/rev/4df084726ec3
branches: trunk
changeset: 357329:4df084726ec3
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 06 03:50:13 2017 +0000
description:
Define the ELFSIZE to be KERN_ELFSIZE, since these headers always refer
to kernel objects (even when included from userland).
diffstat:
sys/sys/kobj.h | 7 +++++--
sys/sys/ksyms.h | 4 ++--
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 7f20341c72a2 -r 4df084726ec3 sys/sys/kobj.h
--- a/sys/sys/kobj.h Mon Nov 06 03:47:45 2017 +0000
+++ b/sys/sys/kobj.h Mon Nov 06 03:50:13 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kobj.h,v 1.18 2017/11/04 12:14:41 martin Exp $ */
+/* $NetBSD: kobj.h,v 1.19 2017/11/06 03:50:13 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,10 @@
#ifndef _SYS_KOBJ_H_
#define _SYS_KOBJ_H_
-#define ELFSIZE ARCH_ELFSIZE
+#ifndef ELFSIZE
+#define ELFSIZE KERN_ELFSIZE
+#endif
+
#include <sys/exec.h>
#include <sys/exec_elf.h>
diff -r 7f20341c72a2 -r 4df084726ec3 sys/sys/ksyms.h
--- a/sys/sys/ksyms.h Mon Nov 06 03:47:45 2017 +0000
+++ b/sys/sys/ksyms.h Mon Nov 06 03:50:13 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ksyms.h,v 1.35 2017/11/04 22:17:55 christos Exp $ */
+/* $NetBSD: ksyms.h,v 1.36 2017/11/06 03:50:13 christos Exp $ */
/*
* Copyright (c) 2001, 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
@@ -31,7 +31,7 @@
#define _SYS_KSYMS_H_
#ifndef ELFSIZE
-#define ELFSIZE ARCH_ELFSIZE
+#define ELFSIZE KERN_ELFSIZE
#endif
#include <sys/exec_elf.h>
Home |
Main Index |
Thread Index |
Old Index