Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Deal with ELFnn_MACHDEP_ID_CASES a bit better.
details: https://anonhg.NetBSD.org/src/rev/bc205d5b0dd3
branches: trunk
changeset: 760987:bc205d5b0dd3
user: matt <matt%NetBSD.org@localhost>
date: Tue Jan 18 08:15:51 2011 +0000
description:
Deal with ELFnn_MACHDEP_ID_CASES a bit better.
diffstat:
sys/kern/subr_kobj.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 5cd8b9d9f5a1 -r bc205d5b0dd3 sys/kern/subr_kobj.c
--- a/sys/kern/subr_kobj.c Tue Jan 18 08:12:05 2011 +0000
+++ b/sys/kern/subr_kobj.c Tue Jan 18 08:15:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kobj.c,v 1.41 2010/04/26 22:58:53 pooka Exp $ */
+/* $NetBSD: subr_kobj.c,v 1.42 2011/01/18 08:15:51 matt 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.41 2010/04/26 22:58:53 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kobj.c,v 1.42 2011/01/18 08:15:51 matt Exp $");
#include "opt_modular.h"
@@ -200,8 +200,10 @@
switch (hdr->e_machine) {
#if ELFSIZE == 32
ELF32_MACHDEP_ID_CASES
+#elif ELFSIZE == 64
+ ELF64_MACHDEP_ID_CASES
#else
- ELF64_MACHDEP_ID_CASES
+#error not defined
#endif
default:
kobj_error("unsupported machine");
Home |
Main Index |
Thread Index |
Old Index