Module Name:    src
Committed By:   christos
Date:           Mon Nov  6 03:50:33 UTC 2017

Modified Files:
        src/sys/sys: exec_elf.h

Log Message:
Use KERN_ELFSIZE if we are in the kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/sys/exec_elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/exec_elf.h
diff -u src/sys/sys/exec_elf.h:1.156 src/sys/sys/exec_elf.h:1.157
--- src/sys/sys/exec_elf.h:1.156	Sat Sep  3 07:18:28 2016
+++ src/sys/sys/exec_elf.h	Sun Nov  5 22:50:33 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: exec_elf.h,v 1.156 2016/09/03 11:18:28 christos Exp $	*/
+/*	$NetBSD: exec_elf.h,v 1.157 2017/11/06 03:50:33 christos Exp $	*/
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -1050,9 +1050,14 @@ struct netbsd_elfcore_procinfo {
 #define ELF_NOTE_MCMODEL_NAME		ELF_NOTE_NETBSD_NAME
 
 
-#if !defined(ELFSIZE) && defined(ARCH_ELFSIZE)
+#if !defined(ELFSIZE)
+#if defined(_KERNEL) && defined(KERN_ELFSIZE)
+#define ELFSIZE KERN_ELFSIZE
+#endif
+#if !defined(_KERNEL) && defined(ARCH_ELFSIZE)
 #define ELFSIZE ARCH_ELFSIZE
 #endif
+#endif
 
 #if defined(ELFSIZE)
 #define CONCAT(x,y)	__CONCAT(x,y)

Reply via email to