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 Like the rest, make __DTOR_LIST__ start wit...



details:   https://anonhg.NetBSD.org/src/rev/a92c41840c84
branches:  trunk
changeset: 787570:a92c41840c84
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jun 24 14:49:55 2013 +0000

description:
Like the rest, make __DTOR_LIST__ start with a -1
Make sure dwarf_eh_object is 8 words long.

diffstat:

 lib/csu/arch/vax/crtbegin.S |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 1be53c3d299d -r a92c41840c84 lib/csu/arch/vax/crtbegin.S
--- a/lib/csu/arch/vax/crtbegin.S       Mon Jun 24 14:49:13 2013 +0000
+++ b/lib/csu/arch/vax/crtbegin.S       Mon Jun 24 14:49:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crtbegin.S,v 1.1 2013/06/21 15:54:08 matt Exp $        */
+/*     $NetBSD: crtbegin.S,v 1.2 2013/06/24 14:49:55 matt 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.1 2013/06/21 15:54:08 matt Exp $")
+RCSID("$NetBSD: crtbegin.S,v 1.2 2013/06/24 14:49:55 matt Exp $")
 
        .section        .ctors, "aw", @progbits
        .p2align 2
@@ -40,6 +40,7 @@
        .section        .dtors, "aw", @progbits
        .p2align 2
 __DTOR_LIST__:
+       .word -1
 
        .section        .eh_frame, "a", @progbits
        .p2align 2
@@ -63,7 +64,7 @@
 #endif
 
        .local  __dwarf_eh_object
-       .comm   __dwarf_eh_object,24
+       .comm   __dwarf_eh_object,32
        .local  __initialized
        .comm   __initialized,1
        .local  __finished
@@ -102,7 +103,7 @@
         * We use load with postincrement to advance the pointer along.
         * We know the list ends with 0.  If we load one, we must be done.
         */
-       moval   __DTOR_LIST__, %r8      /* skip first entry */
+       moval   __DTOR_LIST__+4, %r8    /* skip first entry */
 2:     movl    (%r8)+, %r0             /* r0 = *r8++; */
        beql    3f
        calls   $0, (%r0)



Home | Main Index | Thread Index | Old Index