summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/pthread/pt-initfini.s
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-16 02:49:53 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-16 02:49:53 +0000
commitf9df27a905a3a067ccec2bc23d4c1f1e6db9000c (patch)
tree008e632e06826be196b9702ce9f47d3096a6b2f2 /libpthread/nptl/sysdeps/pthread/pt-initfini.s
parent657bc14240cde95ac1c99909df7c6ee0dd0159d4 (diff)
downloaduClibc-alpine-f9df27a905a3a067ccec2bc23d4c1f1e6db9000c.tar.bz2
uClibc-alpine-f9df27a905a3a067ccec2bc23d4c1f1e6db9000c.tar.xz
Sync up with glibc NPTL and clean up unused source files.
Diffstat (limited to 'libpthread/nptl/sysdeps/pthread/pt-initfini.s')
-rw-r--r--libpthread/nptl/sysdeps/pthread/pt-initfini.s137
1 files changed, 137 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/pthread/pt-initfini.s b/libpthread/nptl/sysdeps/pthread/pt-initfini.s
new file mode 100644
index 000000000..d8e3a7316
--- /dev/null
+++ b/libpthread/nptl/sysdeps/pthread/pt-initfini.s
@@ -0,0 +1,137 @@
+ .file 1 "pt-initfini.c"
+ .section .mdebug.abi32
+ .previous
+ .abicalls
+#APP
+
+#include "defs.h"
+
+/*@HEADER_ENDS*/
+
+/*@TESTS_BEGIN*/
+#NO_APP
+ .text
+ .align 2
+ .globl dummy
+ .type dummy, @function
+dummy:
+ .set noreorder
+ .set nomacro
+
+ beq $4,$0,$L6
+ move $25,$4
+
+ jr $25
+ nop
+
+$L6:
+ j $31
+ nop
+
+ .set macro
+ .set reorder
+#APP
+
+/*@TESTS_END*/
+
+/*@_init_PROLOG_BEGINS*/
+#NO_APP
+ .align 2
+ .type call_initialize_minimal, @function
+call_initialize_minimal:
+ .set noreorder
+ .cpload $25
+ .set nomacro
+
+ lw $25,%call16(__pthread_initialize_minimal_internal)($28)
+ nop
+ jr $25
+ nop
+
+ .set macro
+ .set reorder
+#APP
+ .section .init
+#NO_APP
+ .align 2
+ .globl _init
+ .type _init, @function
+_init:
+ .set noreorder
+ .cpload $25
+ .set reorder
+ addiu $sp,$sp,-32
+ sw $31,24($sp)
+ .cprestore 16
+ lw $25,%got(call_initialize_minimal)($28)
+ #nop
+ addiu $25,$25,%lo(call_initialize_minimal)
+ jalr $25
+ lw $28,16($sp)
+#APP
+ ALIGN
+ END_INIT
+
+/*@_init_PROLOG_ENDS*/
+
+/*@_init_EPILOG_BEGINS*/
+ .section .init
+#NO_APP
+ lw $31,24($sp)
+ #nop
+ .set noreorder
+ .set nomacro
+ j $31
+ addiu $sp,$sp,32
+ .set macro
+ .set reorder
+
+#APP
+ END_INIT
+
+/*@_init_EPILOG_ENDS*/
+
+/*@_fini_PROLOG_BEGINS*/
+ .section .fini
+#NO_APP
+ .align 2
+ .globl _fini
+ .type _fini, @function
+_fini:
+ .set noreorder
+ .cpload $25
+ .set reorder
+ addiu $sp,$sp,-32
+ sw $31,24($sp)
+ .cprestore 16
+#APP
+ ALIGN
+ END_FINI
+
+/*@_fini_PROLOG_ENDS*/
+#NO_APP
+ lw $25,%call16(i_am_not_a_leaf)($28)
+ #nop
+ jalr $25
+ lw $28,16($sp)
+#APP
+
+/*@_fini_EPILOG_BEGINS*/
+ .section .fini
+#NO_APP
+ lw $31,24($sp)
+ #nop
+ .set noreorder
+ .set nomacro
+ j $31
+ addiu $sp,$sp,32
+ .set macro
+ .set reorder
+
+#APP
+ END_FINI
+
+/*@_fini_EPILOG_ENDS*/
+
+/*@TRAILER_BEGINS*/
+ .ident "GCC: (GNU) 4.1.0 20050604 (experimental)"