summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/crti.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-05 00:29:20 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-05 00:29:20 +0000
commit51ddd87e60b2df058f28aff16dab8d7fcc6f6d20 (patch)
tree30df45215b23c94a40609d665a5f6c53b42e654b /libc/sysdeps/linux/i386/crti.S
parentbb13f09f1665b9b1f851ce69d13532c73fac0e98 (diff)
Begin the conversion to using per-arch crti.S and crtn.S
Diffstat (limited to 'libc/sysdeps/linux/i386/crti.S')
-rw-r--r--libc/sysdeps/linux/i386/crti.S40
1 files changed, 40 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/i386/crti.S b/libc/sysdeps/linux/i386/crti.S
new file mode 100644
index 000000000..3cc97f833
--- /dev/null
+++ b/libc/sysdeps/linux/i386/crti.S
@@ -0,0 +1,40 @@
+ .file "initfini.c"
+#APP
+
+ .section .init
+#NO_APP
+.globl _init
+ .type _init, @function
+_init:
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %ebx
+ call __i686.get_pc_thunk.bx
+ addl $_GLOBAL_OFFSET_TABLE_, %ebx
+#APP
+
+
+
+
+ .section .fini
+#NO_APP
+.globl _fini
+ .type _fini, @function
+_fini:
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %ebx
+ call __i686.get_pc_thunk.bx
+ addl $_GLOBAL_OFFSET_TABLE_, %ebx
+#APP
+
+
+
+ .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits
+.globl __i686.get_pc_thunk.bx
+ .hidden __i686.get_pc_thunk.bx
+ .type __i686.get_pc_thunk.bx, @function
+__i686.get_pc_thunk.bx:
+ movl (%esp), %ebx
+ ret
+ .ident "GCC: (GNU) 3.3.2 (Debian)"