Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/arch/powerpc Use _ENTRY



details:   https://anonhg.NetBSD.org/src/rev/f19090838640
branches:  trunk
changeset: 793859:f19090838640
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 27 18:11:08 2014 +0000

description:
Use _ENTRY

diffstat:

 lib/csu/arch/powerpc/crti.S |  42 ++++++++----------------------------------
 1 files changed, 8 insertions(+), 34 deletions(-)

diffs (70 lines):

diff -r ce8ef3fd66e3 -r f19090838640 lib/csu/arch/powerpc/crti.S
--- a/lib/csu/arch/powerpc/crti.S       Thu Feb 27 18:11:04 2014 +0000
+++ b/lib/csu/arch/powerpc/crti.S       Thu Feb 27 18:11:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crti.S,v 1.2 2014/02/27 16:47:48 matt Exp $ */
+/* $NetBSD: crti.S,v 1.3 2014/02/27 18:11:08 matt Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -31,53 +31,27 @@
 
 #include <powerpc/asm.h>
 
-RCSID("$NetBSD: crti.S,v 1.2 2014/02/27 16:47:48 matt Exp $")
+RCSID("$NetBSD: crti.S,v 1.3 2014/02/27 18:11:08 matt Exp $")
 
 #include "sysident.S"
 
-       .globl  _init
-       .type   _init,@function
        .section ".init", "ax", @progbits
-       .align  P2SZREG
-#ifdef _LP64
-       .globl  ._init
-       .pushsection ".opd", "aw"
-       .align  3
-_init: .quad   ._init,.TOC.@tocbase,0
-       .size   _init, (3*SZREG)
-       .popsection
-._init:
-#else
-_init:
-#endif
+_ENTRY(_init)
        mflr    %r0
 #ifdef _LP64
-       stlongu %r1, -(6*SZREG)(%r1)
-       stlong  %r0, (2*SZREG)(%r1)
+       stdu    %r1, -(6*SZREG)(%r1)
+       std     %r0, (2*SZREG)(%r1)
 #else
        stw     %r0, (1*SZREG)(%r1)
        stwu    %r1, -(4*SZREG)(%r1)
 #endif
 
-       .globl _fini
-       .type   _fini,@function
        .section ".fini", "ax", @progbits
-       .align  P2SZREG
-#ifdef _LP64
-       .globl  ._fini
-       .pushsection ".opd", "aw"
-       .align  3
-_fini: .quad   ._fini,.TOC.@tocbase,0
-       .size   _fini, (3*SZREG)
-       .popsection
-._fini:
-#else
-_fini:
-#endif
+_ENTRY(_fini)
        mflr    %r0
 #ifdef _LP64
-       stlongu %r1, -(6*SZREG)(%r1)
-       stlong  %r0, (2*SZREG)(%r1)
+       stdu    %r1, -(6*SZREG)(%r1)
+       std     %r0, (2*SZREG)(%r1)
 #else
        stw     %r0, (1*SZREG)(%r1)
        stwu    %r1, -(4*SZREG)(%r1)



Home | Main Index | Thread Index | Old Index