Source-Changes-HG archive

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

[src/trunk]: src/sys Add buildid Go note



details:   https://anonhg.NetBSD.org/src/rev/bb9cf807c82c
branches:  trunk
changeset: 341351:bb9cf807c82c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 01 15:21:42 2015 +0000

description:
Add buildid Go note

diffstat:

 sys/kern/exec_elf.c |   7 +++++--
 sys/sys/exec_elf.h  |  14 +++++++++++++-
 2 files changed, 18 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 3eea05a90ceb -r bb9cf807c82c sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c       Sun Nov 01 14:47:54 2015 +0000
+++ b/sys/kern/exec_elf.c       Sun Nov 01 15:21:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.c,v 1.78 2015/10/22 11:38:51 maxv Exp $       */
+/*     $NetBSD: exec_elf.c,v 1.79 2015/11/01 15:21:42 christos Exp $   */
 
 /*-
  * Copyright (c) 1994, 2000, 2005, 2015 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.78 2015/10/22 11:38:51 maxv Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.79 2015/11/01 15:21:42 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pax.h"
@@ -999,6 +999,9 @@
                case ELF_NOTE_TYPE_SUSE_VERSION_TAG:
                        break;
 
+               case ELF_NOTE_TYPE_GO_BUILDID_TAG:
+                       break;
+
                default:
                        BADNOTE("unknown tag");
 bad:
diff -r 3eea05a90ceb -r bb9cf807c82c sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Sun Nov 01 14:47:54 2015 +0000
+++ b/sys/sys/exec_elf.h        Sun Nov 01 15:21:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.149 2015/07/30 15:28:18 maxv Exp $      */
+/*     $NetBSD: exec_elf.h,v 1.150 2015/11/01 15:21:42 christos Exp $  */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -895,6 +895,18 @@
 /* SuSE-specific note name */
 #define ELF_NOTE_SUSE_VERSION_NAME             "SuSE\0\0\0\0"
 
+/* Go-specific note type: buildid
+ * name: Go\0\0
+ * namesz: 4
+ * desc: 
+ *     words[10]
+ * descsz: 40
+ */
+#define ELF_NOTE_TYPE_GO_BUILDID_TAG   4
+#define ELF_NOTE_GO_BUILDID_NAMESZ     4
+#define ELF_NOTE_GO_BUILDID_DESCSZ     40
+#define ELF_NOTE_GO_BUILDID_NAME       "Go\0\0"
+
 /* NetBSD-specific note type: Emulation name.
  * name: NetBSD\0\0
  * namesz: 8



Home | Main Index | Thread Index | Old Index