Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add NetBSD checksum notes.



details:   https://anonhg.NetBSD.org/src/rev/ee2a9dd86fea
branches:  trunk
changeset: 583648:ee2a9dd86fea
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 17 17:24:31 2005 +0000

description:
Add NetBSD checksum notes.

diffstat:

 sys/sys/exec_elf.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 6d8ab294ed7b -r ee2a9dd86fea sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Wed Aug 17 07:13:32 2005 +0000
+++ b/sys/sys/exec_elf.h        Wed Aug 17 17:24:31 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.82 2005/06/10 05:10:13 matt Exp $       */
+/*     $NetBSD: exec_elf.h,v 1.83 2005/08/17 17:24:31 matt Exp $       */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -653,6 +653,13 @@
 
 /* NetBSD-specific note type: Emulation name.  desc is emul name string. */
 #define        ELF_NOTE_TYPE_NETBSD_TAG        1
+/* NetBSD-specific note type: Checksum.  There should be 1 NOTE per PT_LOAD
+   section.  desc is a tuple of <phnum>(16),<chk-type>(16),<chk-value>. */
+#define        ELF_NOTE_TYPE_CHECKSUM_TAG      2
+#define        ELF_NOTE_CHECKSUM_CRC32         1
+#define        ELF_NOTE_CHECKSUM_MD5           2
+#define        ELF_NOTE_CHECKSUM_SHA1          3
+#define        ELF_NOTE_CHECKSUM_SHA256        4
 
 /* NetBSD-specific note name and description sizes */
 #define        ELF_NOTE_NETBSD_NAMESZ          7



Home | Main Index | Thread Index | Old Index