Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Preserve NetBSD version from the ABI tag for compat use.
details: https://anonhg.NetBSD.org/src/rev/ef52f40d912f
branches: trunk
changeset: 791012:ef52f40d912f
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Oct 30 23:32:30 2013 +0000
description:
Preserve NetBSD version from the ABI tag for compat use.
diffstat:
sys/kern/exec_elf.c | 7 +++++--
sys/sys/exec.h | 3 ++-
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r 24a3c7c7871d -r ef52f40d912f sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Wed Oct 30 20:27:39 2013 +0000
+++ b/sys/kern/exec_elf.c Wed Oct 30 23:32:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.47 2013/09/10 21:30:21 matt Exp $ */
+/* $NetBSD: exec_elf.c,v 1.48 2013/10/30 23:32:30 joerg Exp $ */
/*-
* Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.47 2013/09/10 21:30:21 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.48 2013/10/30 23:32:30 joerg Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -902,6 +902,9 @@
np->n_descsz == ELF_NOTE_NETBSD_DESCSZ &&
memcmp(ndata, ELF_NOTE_NETBSD_NAME,
ELF_NOTE_NETBSD_NAMESZ) == 0) {
+ memcpy(&epp->ep_osversion,
+ ndata + ELF_NOTE_NETBSD_NAMESZ + 1,
+ ELF_NOTE_NETBSD_DESCSZ);
isnetbsd = 1;
break;
}
diff -r 24a3c7c7871d -r ef52f40d912f sys/sys/exec.h
--- a/sys/sys/exec.h Wed Oct 30 20:27:39 2013 +0000
+++ b/sys/sys/exec.h Wed Oct 30 23:32:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.h,v 1.140 2013/09/10 21:30:21 matt Exp $ */
+/* $NetBSD: exec.h,v 1.141 2013/10/30 23:32:30 joerg Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -216,6 +216,7 @@
char *ep_path; /* absolute path of executable */
void (*ep_emul_arg_free)(void *);
/* free ep_emul_arg */
+ uint32_t ep_osversion; /* OS version */
char ep_machine_arch[12]; /* from MARCH note */
};
#define EXEC_INDIR 0x0001 /* script handling already done */
Home |
Main Index |
Thread Index |
Old Index