Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/arch/sh3 Use unambiguous .p2align 2 since .align 4 c...



details:   https://anonhg.NetBSD.org/src/rev/36eb52b5ea15
branches:  trunk
changeset: 773352:36eb52b5ea15
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Jan 31 20:12:47 2012 +0000

description:
Use unambiguous .p2align 2 since .align 4 copied from i386 is
incorrect, as .align is .p2align on sh3, not .balign

diffstat:

 lib/csu/arch/sh3/crtend.S |  12 ++++++------
 lib/csu/arch/sh3/crti.S   |   8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (74 lines):

diff -r 965b1c87700d -r 36eb52b5ea15 lib/csu/arch/sh3/crtend.S
--- a/lib/csu/arch/sh3/crtend.S Tue Jan 31 20:11:41 2012 +0000
+++ b/lib/csu/arch/sh3/crtend.S Tue Jan 31 20:12:47 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crtend.S,v 1.1 2012/01/28 15:08:47 uwe Exp $   */
+/*     $NetBSD: crtend.S,v 1.2 2012/01/31 20:12:47 uwe Exp $   */
 /*-
  * Copyright (c) 2010 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
  * All rights reserved.
@@ -30,23 +30,23 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: crtend.S,v 1.1 2012/01/28 15:08:47 uwe Exp $")
+RCSID("$NetBSD: crtend.S,v 1.2 2012/01/31 20:12:47 uwe Exp $")
 
        .section        .ctors, "aw", @progbits
-       .align 4
+       .p2align 2
        .global         __CTOR_LIST_END__
        .hidden         __CTOR_LIST_END__
 __CTOR_LIST_END__:
        .long 0
 
        .section        .dtors, "aw", @progbits
-       .align 4
+       .p2align 2
        .long 0
 
        .section        .eh_frame, "a", @progbits
-       .align 4
+       .p2align 2
        .long 0
 
        .section        .jcr, "aw", @progbits
-       .align 4
+       .p2align 2
        .long 0
diff -r 965b1c87700d -r 36eb52b5ea15 lib/csu/arch/sh3/crti.S
--- a/lib/csu/arch/sh3/crti.S   Tue Jan 31 20:11:41 2012 +0000
+++ b/lib/csu/arch/sh3/crti.S   Tue Jan 31 20:12:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crti.S,v 1.2 2012/01/28 12:44:19 uwe Exp $ */
+/* $NetBSD: crti.S,v 1.3 2012/01/31 20:12:47 uwe Exp $ */
 
 /*-
  * Copyright (c) 2001 Ross Harvey
@@ -35,7 +35,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: crti.S,v 1.2 2012/01/28 12:44:19 uwe Exp $")
+RCSID("$NetBSD: crti.S,v 1.3 2012/01/31 20:12:47 uwe Exp $")
 
 #include "sysident.S"
 
@@ -46,7 +46,7 @@
  */
 
        .section ".init", "ax", @progbits
-       .align 4
+       .p2align 2
        .globl _init
 _init:
        mov.l   r14, @-sp
@@ -54,7 +54,7 @@
        mov     sp, r14
 
        .section ".fini", "ax", @progbits
-       .align 4
+       .p2align 2
        .globl _fini
 _fini:
        mov.l   r14, @-sp



Home | Main Index | Thread Index | Old Index