Module Name:    src
Committed By:   rin
Date:           Fri Jul 28 11:22:43 UTC 2023

Modified Files:
        src/lib/csu/arch/vax: crt0.S

Log Message:
vax/csu: __start: Use 0x0000 as entry mask instead of 0x0101 (two NOPs)

This was a quite common trick to able to load executables with a.out
headers stripped. Now, the system boots successfully into multi-user
mode without this trick.

Thanks ragge@ for kind explanation:
https://mail-index.netbsd.org/port-vax/2023/07/28/msg004397.html


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/csu/arch/vax/crt0.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/csu/arch/vax/crt0.S
diff -u src/lib/csu/arch/vax/crt0.S:1.4 src/lib/csu/arch/vax/crt0.S:1.5
--- src/lib/csu/arch/vax/crt0.S:1.4	Mon Nov 26 17:37:46 2018
+++ src/lib/csu/arch/vax/crt0.S	Fri Jul 28 11:22:43 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.S,v 1.4 2018/11/26 17:37:46 joerg Exp $ */
+/* $NetBSD: crt0.S,v 1.5 2023/07/28 11:22:43 rin Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -31,11 +31,11 @@
 
 #include <vax/asm.h>
 
-RCSID("$NetBSD: crt0.S,v 1.4 2018/11/26 17:37:46 joerg Exp $")
+RCSID("$NetBSD: crt0.S,v 1.5 2023/07/28 11:22:43 rin Exp $")
 
 STRONG_ALIAS(_start,__start)
 
-_ENTRY(__start, 0x0101)
+_ENTRY(__start, 0x0000)
 	pushl	%r9		/* ps_strings */
 	pushl	%r7		/* cleanup */
 	calls	$2,___start

Reply via email to