Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/arch/arm Fix fini processing.



details:   https://anonhg.NetBSD.org/src/rev/88cdd0fef8bd
branches:  trunk
changeset: 781189:88cdd0fef8bd
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 25 15:39:05 2012 +0000

description:
Fix fini processing.

diffstat:

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

diffs (27 lines):

diff -r cc157160e741 -r 88cdd0fef8bd lib/csu/arch/arm/crtbegin.S
--- a/lib/csu/arch/arm/crtbegin.S       Sat Aug 25 14:08:17 2012 +0000
+++ b/lib/csu/arch/arm/crtbegin.S       Sat Aug 25 15:39:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crtbegin.S,v 1.3 2012/08/24 16:37:45 matt Exp $        */
+/*     $NetBSD: crtbegin.S,v 1.4 2012/08/25 15:39:05 matt Exp $        */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
 
 #include <arm/asm.h>
 
-RCSID("$NetBSD: crtbegin.S,v 1.3 2012/08/24 16:37:45 matt Exp $")
+RCSID("$NetBSD: crtbegin.S,v 1.4 2012/08/25 15:39:05 matt Exp $")
 
        .section        .ctors, "aw", %progbits
        .p2align 2
@@ -122,7 +122,7 @@
        add     r4, r4, r7              /* addr = offset + got */
        add     r5, r5, r7              /* addr = offset + got */
 #endif
-       sub     r5, r5, #4              /* skip first entry */
+       add     r4, r4, #4              /* skip first entry */
 1:
        cmp     r4, r5                  /* end of list */
        ldrne   ip, [r4], #4            /* ip = *r4++; */



Home | Main Index | Thread Index | Old Index