diff options
Diffstat (limited to 'sysdeps/powerpc/powerpc64/crti.S')
-rw-r--r-- | sysdeps/powerpc/powerpc64/crti.S | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/sysdeps/powerpc/powerpc64/crti.S b/sysdeps/powerpc/powerpc64/crti.S index 96726b4317..40f22f2de3 100644 --- a/sysdeps/powerpc/powerpc64/crti.S +++ b/sysdeps/powerpc/powerpc64/crti.S @@ -1,5 +1,5 @@ /* Special .init and .fini section support for PowerPC64. - Copyright (C) 2012 Free Software Foundation, Inc. + Copyright (C) 2012-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -60,23 +60,14 @@ .LC0: .tc PREINIT_FUNCTION[TC], PREINIT_FUNCTION #endif - .type BODY_LABEL (_init), @function - .globl _init - .section ".opd", "aw" - .align 3 -_init: OPD_ENT (_init) -#ifdef HAVE_ASM_GLOBAL_DOT_NAME - .globl BODY_LABEL (_init) - .size _init, 24 -#else - .type _init, @function -#endif .section ".init", "ax", @progbits + ENTRY_2(_init) .align ALIGNARG (2) BODY_LABEL (_init): + LOCALENTRY(_init) mflr 0 - std 0, 16(r1) - stdu r1, -112(r1) + std 0, FRAME_LR_SAVE(r1) + stdu r1, -FRAME_MIN_SIZE_PARM(r1) #if PREINIT_FUNCTION_WEAK addis r9, r2, .LC0@toc@ha ld r0, .LC0@toc@l(r9) @@ -87,20 +78,11 @@ BODY_LABEL (_init): nop 1: - .type BODY_LABEL (_fini), @function - .globl _fini - .section ".opd", "aw" - .align 3 -_fini: OPD_ENT (_fini) -#ifdef HAVE_ASM_GLOBAL_DOT_NAME - .globl BODY_LABEL (_fini) - .size _fini, 24 -#else - .type _fini, @function -#endif .section ".fini", "ax", @progbits + ENTRY_2(_fini) .align ALIGNARG (2) BODY_LABEL (_fini): + LOCALENTRY(_fini) mflr 0 - std 0, 16(r1) - stdu r1, -112(r1) + std 0, FRAME_LR_SAVE(r1) + stdu r1, -FRAME_MIN_SIZE_PARM(r1) |