Module Name: src
Committed By: matt
Date: Tue Sep 10 16:24:02 UTC 2013
Modified Files:
src/sys/sys: exec_elf.h
Log Message:
Add a NetBSD note variant for recording the machine_arch for which the
executable was built. (currently only used by earm variants)
To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 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.128 src/sys/sys/exec_elf.h:1.129
--- src/sys/sys/exec_elf.h:1.128 Fri Jun 21 01:40:24 2013
+++ src/sys/sys/exec_elf.h Tue Sep 10 16:24:02 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.h,v 1.128 2013/06/21 01:40:24 christos Exp $ */
+/* $NetBSD: exec_elf.h,v 1.129 2013/09/10 16:24:02 matt Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -961,6 +961,20 @@ struct netbsd_elfcore_procinfo {
int32_t cpi_siglwp; /* LWP target of killing signal */
};
+/*
+ * NetBSD-specific note type: MACHINE_ARCH.
+ * There should be 1 NOTE per executable.
+ * name: NetBSD\0
+ * namesz: 7
+ * desc: string
+ * descsz: variable
+ */
+#define ELF_NOTE_TYPE_MARCH_TAG 5
+/* NetBSD-specific note name and description sizes */
+#define ELF_NOTE_MARCH_NAMESZ ELF_NOTE_NETBSD_NAMESZ
+/* NetBSD-specific note name */
+#define ELF_NOTE_MARCH_NAME ELF_NOTE_NETBSD_NAME
+
#if !defined(ELFSIZE) && defined(ARCH_ELFSIZE)
#define ELFSIZE ARCH_ELFSIZE
#endif