Module Name:    src
Committed By:   christos
Date:           Sun Nov  1 15:21:42 UTC 2015

Modified Files:
        src/sys/kern: exec_elf.c
        src/sys/sys: exec_elf.h

Log Message:
Add buildid Go note


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/kern/exec_elf.c
cvs rdiff -u -r1.149 -r1.150 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/kern/exec_elf.c
diff -u src/sys/kern/exec_elf.c:1.78 src/sys/kern/exec_elf.c:1.79
--- src/sys/kern/exec_elf.c:1.78	Thu Oct 22 07:38:51 2015
+++ src/sys/kern/exec_elf.c	Sun Nov  1 10:21:42 2015
@@ -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 @@ netbsd_elf_signature(struct lwp *l, stru
 		case ELF_NOTE_TYPE_SUSE_VERSION_TAG:
 			break;
 
+		case ELF_NOTE_TYPE_GO_BUILDID_TAG:
+			break;
+
 		default:
 			BADNOTE("unknown tag");
 bad:

Index: src/sys/sys/exec_elf.h
diff -u src/sys/sys/exec_elf.h:1.149 src/sys/sys/exec_elf.h:1.150
--- src/sys/sys/exec_elf.h:1.149	Thu Jul 30 11:28:18 2015
+++ src/sys/sys/exec_elf.h	Sun Nov  1 10:21:42 2015
@@ -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 @@ typedef struct {
 /* 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

Reply via email to