Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add SuSE note
details: https://anonhg.NetBSD.org/src/rev/cb78b5922903
branches: trunk
changeset: 767891:cb78b5922903
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 02 16:44:01 2011 +0000
description:
Add SuSE note
diffstat:
sys/kern/exec_elf.c | 7 +++++--
sys/sys/exec_elf.h | 21 ++++++++++++++++++++-
2 files changed, 25 insertions(+), 3 deletions(-)
diffs (63 lines):
diff -r 6df04fef33fc -r cb78b5922903 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Tue Aug 02 16:12:44 2011 +0000
+++ b/sys/kern/exec_elf.c Tue Aug 02 16:44:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.30 2011/07/19 19:45:36 christos Exp $ */
+/* $NetBSD: exec_elf.c,v 1.31 2011/08/02 16:44:01 christos 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.30 2011/07/19 19:45:36 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.31 2011/08/02 16:44:01 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -913,6 +913,9 @@
sizeof(epp->ep_pax_flags));
break;
+ case ELF_NOTE_TYPE_SUSE_TAG:
+ break;
+
default:
#ifdef DIAGNOSTIC
printf("%s: unknown note type %d\n", epp->ep_kname,
diff -r 6df04fef33fc -r cb78b5922903 sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h Tue Aug 02 16:12:44 2011 +0000
+++ b/sys/sys/exec_elf.h Tue Aug 02 16:44:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.h,v 1.115 2011/07/19 19:46:42 christos Exp $ */
+/* $NetBSD: exec_elf.h,v 1.116 2011/08/02 16:44:01 christos Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -795,6 +795,25 @@
*/
#define ELF_NOTE_TYPE_GNU_BUILD_ID 3
+/* SuSE-specific note type: version
+ * name: SuSE\0\0\0\0
+ * namesz: 8
+ * desc:
+ * word[0] = VVTTMMmm
+ *
+ * V = version of following data
+ * T = product type: [box, sles, nld, whatever]
+ * M = product major version
+ * m = product minor version
+ * descsz: 8
+ */
+#define ELF_NOTE_TYPE_SUSE_TAG 0x45537553 /* SuSE in LE */
+/* NetBSD-specific note name and description sizes */
+#define ELF_NOTE_SUSE_NAMESZ 8
+#define ELF_NOTE_SUSE_DESCSZ 8
+/* NetBSD-specific note name */
+#define ELF_NOTE_SUSE_NAME "SuSE\0\0\0\0"
+
/* NetBSD-specific note type: Emulation name.
* name: NetBSD\0\0
* namesz: 8
Home |
Main Index |
Thread Index |
Old Index