Module Name: src
Committed By: kamil
Date: Thu May 4 11:12:23 UTC 2017
Modified Files:
src/sys/kern: core_elf32.c
Log Message:
Set clear comment about EI_OSABI and EI_ABIVERSION
/*
* NetBSD sets generic SYSV OSABI and ABI version 0
* Native ELF files are distinguishable with NetBSD specific notes
*/
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/kern/core_elf32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/core_elf32.c
diff -u src/sys/kern/core_elf32.c:1.54 src/sys/kern/core_elf32.c:1.55
--- src/sys/kern/core_elf32.c:1.54 Thu Mar 30 20:17:11 2017
+++ src/sys/kern/core_elf32.c Thu May 4 11:12:23 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: core_elf32.c,v 1.54 2017/03/30 20:17:11 christos Exp $ */
+/* $NetBSD: core_elf32.c,v 1.55 2017/05/04 11:12:23 kamil Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: core_elf32.c,v 1.54 2017/03/30 20:17:11 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: core_elf32.c,v 1.55 2017/05/04 11:12:23 kamil Exp $");
#ifdef _KERNEL_OPT
#include "opt_coredump.h"
@@ -158,7 +158,10 @@ ELFNAMEEND(coredump)(struct lwp *l, stru
#endif
ehdr.e_ident[EI_DATA] = ELFDEFNNAME(MACHDEP_ENDIANNESS);
ehdr.e_ident[EI_VERSION] = EV_CURRENT;
- /* XXX Should be the OSABI/ABI version of the executable. */
+ /*
+ * NetBSD sets generic SYSV OSABI and ABI version 0
+ * Native ELF files are distinguishable with NetBSD specific notes
+ */
ehdr.e_ident[EI_OSABI] = ELFOSABI_SYSV;
ehdr.e_ident[EI_ABIVERSION] = 0;