Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/arch/vax vax/csu: __start: Use 0x0000 as entry mask ...
details: https://anonhg.NetBSD.org/src/rev/8a0b9bb10ea2
branches: trunk
changeset: 378260:8a0b9bb10ea2
user: rin <rin%NetBSD.org@localhost>
date: Fri Jul 28 11:22:43 2023 +0000
description:
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
diffstat:
lib/csu/arch/vax/crt0.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r bbd34956286c -r 8a0b9bb10ea2 lib/csu/arch/vax/crt0.S
--- a/lib/csu/arch/vax/crt0.S Fri Jul 28 10:39:14 2023 +0000
+++ b/lib/csu/arch/vax/crt0.S Fri Jul 28 11:22:43 2023 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index