From 51ddd87e60b2df058f28aff16dab8d7fcc6f6d20 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 5 Nov 2003 00:29:20 +0000 Subject: Begin the conversion to using per-arch crti.S and crtn.S --- libc/sysdeps/linux/i386/crtn.S | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libc/sysdeps/linux/i386/crtn.S (limited to 'libc/sysdeps/linux/i386/crtn.S') diff --git a/libc/sysdeps/linux/i386/crtn.S b/libc/sysdeps/linux/i386/crtn.S new file mode 100644 index 000000000..733f25b83 --- /dev/null +++ b/libc/sysdeps/linux/i386/crtn.S @@ -0,0 +1,33 @@ + .file "initfini.c" +#APP + + .section .init +#NO_APP +.globl _init + .type _init, @function +#NO_APP + popl %ebx + popl %ebp + ret + .size _init, .-_init +#APP + + .section .fini +#NO_APP +.globl _fini + .type _fini, @function +#NO_APP + popl %ebx + popl %ebp + ret + .size _fini, .-_fini +#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)" -- cgit v1.2.3