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: __do_global_ctors_aux: Save actual...



details:   https://anonhg.NetBSD.org/src/rev/80ae8fb3e581
branches:  trunk
changeset: 378251:80ae8fb3e581
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Jul 28 07:04:41 2023 +0000

description:
vax/csu: __do_global_ctors_aux: Save actually-used r8, instead of r11

Thanks Kalvis Duckmanton for report and patch on tech-toolchain:
https://mail-index.netbsd.org/tech-toolchain/2023/07/28/msg004321.html

diffstat:

 lib/csu/arch/vax/crtbegin.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5f4ee2cd8205 -r 80ae8fb3e581 lib/csu/arch/vax/crtbegin.S
--- a/lib/csu/arch/vax/crtbegin.S       Fri Jul 28 06:21:02 2023 +0000
+++ b/lib/csu/arch/vax/crtbegin.S       Fri Jul 28 07:04:41 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crtbegin.S,v 1.7 2014/03/16 11:41:30 joerg Exp $       */
+/*     $NetBSD: crtbegin.S,v 1.8 2023/07/28 07:04:41 rin Exp $ */
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
 
 #include <vax/asm.h>
 
-RCSID("$NetBSD: crtbegin.S,v 1.7 2014/03/16 11:41:30 joerg Exp $")
+RCSID("$NetBSD: crtbegin.S,v 1.8 2023/07/28 07:04:41 rin Exp $")
 
        .section        .ctors, "aw", @progbits
        .p2align 2
@@ -132,7 +132,7 @@ END(__do_global_dtors_aux)
 
        .hidden __do_global_ctors_aux
 
-_ENTRY(__do_global_ctors_aux, 0x0800)
+_ENTRY(__do_global_ctors_aux, 0x0100)          /* save r8 */
        tstb    __initialized
        bneq    4f
        movb    $1, __initialized



Home | Main Index | Thread Index | Old Index