Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Set clear comment about EI_OSABI and EI_ABIVERSION



details:   https://anonhg.NetBSD.org/src/rev/76fde14f9297
branches:  trunk
changeset: 823714:76fde14f9297
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu May 04 11:12:23 2017 +0000

description:
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.

diffstat:

 sys/kern/core_elf32.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r df2831059667 -r 76fde14f9297 sys/kern/core_elf32.c
--- a/sys/kern/core_elf32.c     Thu May 04 11:03:27 2017 +0000
+++ b/sys/kern/core_elf32.c     Thu May 04 11:12:23 2017 +0000
@@ -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 @@
 #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;
 



Home | Main Index | Thread Index | Old Index