Source-Changes-HG archive

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

[src/trunk]: src/sys/sys There have never been binaries with a checksum tag f...



details:   https://anonhg.NetBSD.org/src/rev/adcff896a255
branches:  trunk
changeset: 321987:adcff896a255
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 12 20:48:41 2018 +0000

description:
There have never been binaries with a checksum tag for NetBSD.
These days the equivalent functionality is provided by the build
id tag. It was incorrect in the first place to overload tag #2
(which used to be the emulation name) with a different meaning, so
actually document the meaning that was once used (because binaries
with that tag exist).

Tag existance noticed by kre@

diffstat:

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

diffs (49 lines):

diff -r e786c34c8501 -r adcff896a255 sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Thu Apr 12 20:44:16 2018 +0000
+++ b/sys/sys/exec_elf.h        Thu Apr 12 20:48:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.158 2017/11/06 17:56:25 christos Exp $  */
+/*     $NetBSD: exec_elf.h,v 1.159 2018/04/12 20:48:41 christos Exp $  */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -910,7 +910,7 @@
 #define ELF_NOTE_GO_BUILDID_DESCSZ     40
 #define ELF_NOTE_GO_BUILDID_NAME       "Go\0\0"
 
-/* NetBSD-specific note type: Emulation name.
+/* NetBSD-specific note type: NetBSD ABI version.
  * name: NetBSD\0\0
  * namesz: 8
  * desc: 
@@ -929,19 +929,19 @@
 /* NetBSD-specific note name */
 #define ELF_NOTE_NETBSD_NAME           "NetBSD\0\0"
 
-/* NetBSD-specific note type: Checksum. 
- * There should be 1 NOTE per PT_LOAD section.
- * name: ???
- * namesz: ???
+/* NetBSD-specific note type: Emulation (obsolete; last used early 2000)
+ * name: NetBSD\0\0
+ * namesz: 8
  * desc:
- *     a tuple of <phnum>(16),<chk-type>(16),<chk-value>.
- * descsz: ???
+ *     "netbsd\0"
+ *     
+ * descsz: 8
  */
-#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
+#define ELF_NOTE_TYPE_NETBSD_EMUL_TAG  2
+#define ELF_NOTE_NETBSD_EMUL_NAMESZ    7
+#define ELF_NOTE_NETBSD_EMUL_DESCSZ    7
+/* NetBSD-specific note name */
+#define ELF_NOTE_NETBSD_EMUL_NAME      "NetBSD\0\0"
 
 /*
  * NetBSD-specific note type: PaX.



Home | Main Index | Thread Index | Old Index