#define _SETJMP_H
#include <bits/setjmp.h>
-.globl __longjmp;
-.type __longjmp,@function
-.align 4; \
+.global __longjmp
+.type __longjmp,%function
+.align 4
__longjmp:
movl 4(%esp), %ecx /* User's jmp_buf in %ecx. */
movl 8(%esp), %eax /* Second argument is return value. */
/* Save the return address now. */
movl (JB_PC*4)(%ecx), %edx
- /* Restore registers. */
+ /* Restore registers. */
movl (JB_BX*4)(%ecx), %ebx
movl (JB_SI*4)(%ecx), %esi
movl (JB_DI*4)(%ecx), %edi
movl (JB_BP*4)(%ecx), %ebp
movl (JB_SP*4)(%ecx), %esp
/* Jump to saved PC. */
- jmp *%edx
-.size __longjmp,.-__longjmp;
+ jmp *%edx
+.size __longjmp,.-__longjmp
#define _SETJMP_H
#include <bits/setjmp.h>
-
-.globl _setjmp;
-.type _setjmp,@function
-.align 4;
-
+.global _setjmp
+.type _setjmp,%function
+.align 4
_setjmp:
xorl %eax, %eax
movl 4 (%esp), %edx
- /* Save registers. */
+ /* Save registers. */
movl %ebx, (JB_BX*4)(%edx)
movl %esi, (JB_SI*4)(%edx)
movl %edi, (JB_DI*4)(%edx)
leal 4 (%esp), %ecx /* Save SP as it will be after we return. */
- movl %ecx, (JB_SP*4)(%edx)
+ movl %ecx, (JB_SP*4)(%edx)
movl 0 (%esp), %ecx /* Save PC we are returning to now. */
- movl %ecx, (JB_PC*4)(%edx)
+ movl %ecx, (JB_PC*4)(%edx)
movl %ebp, (JB_BP*4)(%edx) /* Save caller's frame pointer. */
movl %eax, JB_SIZE(%edx) /* No signal mask set. */
ret
-.size _setjmp,.-_setjmp;
-
-
+.size _setjmp,.-_setjmp
#define _SETJMP_H
#include <bits/setjmp.h>
-.globl setjmp;
-.type setjmp,@function
-.align 4;
+.global setjmp
+.type setjmp,%function
+.align 4
setjmp:
- movl 4 (%esp), %eax
+ movl 4 (%esp), %eax
/* Save registers. */
- movl %ebx, (0 *4)(%eax)
- movl %esi, (1 *4)(%eax)
- movl %edi, (2 *4)(%eax)
+ movl %ebx, (0 *4)(%eax)
+ movl %esi, (1 *4)(%eax)
+ movl %edi, (2 *4)(%eax)
/* Save SP as it will be after we return. */
- leal 4 (%esp), %ecx
- movl %ecx, (4 *4)(%eax)
+ leal 4 (%esp), %ecx
+ movl %ecx, (4 *4)(%eax)
/* Save PC we are returning to now. */
- movl 0 (%esp), %ecx
- movl %ecx, (5 *4)(%eax)
+ movl 0 (%esp), %ecx
+ movl %ecx, (5 *4)(%eax)
/* Save caller's frame pointer. */
- movl %ebp, (3 *4)(%eax)
+ movl %ebp, (3 *4)(%eax)
/* Call __sigjmp_save. */
pushl $1
pushl 8(%esp)
#ifdef __PIC__
/* We cannot use the PLT, because it requires that %ebx be set, but
- we can't save and restore our caller's value. Instead, we do an
- indirect jump through the GOT, using for the temporary register
- %ecx, which is call-clobbered. */
+ we can't save and restore our caller's value. Instead, we do an
+ indirect jump through the GOT, using for the temporary register
+ %ecx, which is call-clobbered. */
call here2
here2: popl %ecx
addl $_GLOBAL_OFFSET_TABLE_+[.-here2], %ecx
popl %ecx
popl %edx
ret
-.size setjmp,.-setjmp;
+.size setjmp,.-setjmp
#define __NR_exit 1
.text
-.type clone,@function;
-.weak clone ; clone = __clone
+.type clone,%function
+.weak clone
+ clone = __clone
-.type __clone,@function;
-.globl __clone;
+.global __clone
+.type __clone,%function
__clone:
/* Sanity check arguments. */
#else /* __PIC__ */
.Lclone_error:
- negl %eax
- pushl %eax
+ negl %eax
+ pushl %eax
call __errno_location
popl %ecx
movl %ecx, (%eax)
#endif
.size __clone,.-__clone
-
#include <features.h>
- .text
- .globl _start
- .type _start,@function
+.text
+.global _start
+.type _start,%function
#if defined(__UCLIBC_CTOR_DTOR__)
- .type _init,%function
- .type _fini,%function
+.type _init,%function
+.type _fini,%function
#else
- .weak _init
- .weak _fini
+.weak _init
+.weak _fini
#endif
- .type main,%function
- .type __uClibc_main,%function
+.type main,%function
+.type __uClibc_main,%function
_start:
/* Clear the frame pointer. The ABI suggests this be done, to mark
the outermost frame obviously. */
.size _start,.-_start
/* Define a symbol for the first piece of initialized data. */
- .data
- .globl __data_start
+.data
+.global __data_start
__data_start:
- .long 0
- .weak data_start
+.long 0
+.weak data_start
data_start = __data_start
- .section .init
-.globl _init
- .type _init, @function
+.section .init
+.global _init
+.type _init,%function
_init:
pushl %ebp
movl %esp, %ebp
-
- .section .fini
-.globl _fini
- .type _fini, @function
+.section .fini
+.global _fini
+.type _fini,%function
_fini:
pushl %ebp
movl %esp, %ebp
- .section .gnu.linkonce.t.__get_pc_thunk_bx,"ax",@progbits
-.globl __get_pc_thunk_bx
- .hidden __get_pc_thunk_bx
- .type __get_pc_thunk_bx, @function
+.section .gnu.linkonce.t.__get_pc_thunk_bx,"ax",@progbits
+.global __get_pc_thunk_bx
+.hidden __get_pc_thunk_bx
+.type __get_pc_thunk_bx,%function
__get_pc_thunk_bx:
movl (%esp), %ebx
ret
- .file "initfini.c"
- .section .init
-.globl _init
- .type _init, @function
+.file "initfini.c"
+
+.section .init
+.global _init
+.type _init,%function
popl %ebx
popl %ebp
ret
- .size _init, .-_init
+.size _init,.-_init
+
- .section .fini
-.globl _fini
- .type _fini, @function
+.section .fini
+.global _fini
+.type _fini,%function
popl %ebx
popl %ebp
ret
- .size _fini, .-_fini
+.size _fini,.-_fini
- .section .gnu.linkonce.t.__get_pc_thunk_bx,"ax",@progbits
-.globl __get_pc_thunk_bx
- .hidden __get_pc_thunk_bx
- .type __get_pc_thunk_bx, @function
+.section .gnu.linkonce.t.__get_pc_thunk_bx,"ax",@progbits
+.global __get_pc_thunk_bx
+.hidden __get_pc_thunk_bx
+.type __get_pc_thunk_bx,%function
__get_pc_thunk_bx:
movl (%esp), %ebx
ret
#define OFFLO FD+4
#define OFFHI OFFLO+4
- .text
- .globl mmap64;
- .type mmap64,@function;
- .align 1<<4;
+.text
+.global mmap64
+.type mmap64,%function
+.align 1<<4
mmap64:
/* Save registers. */
decl %eax
.Lsize:
- .size mmap64,.Lsize-mmap64
+.size mmap64,.Lsize-mmap64
#endif
-
#include <bits/setjmp.h>
-.globl __sigsetjmp;
-.type __sigsetjmp,@function
-.align 4;
+.global __sigsetjmp
+.type __sigsetjmp,%function
+.align 4
__sigsetjmp:
movl 4 (%esp), %eax
#else
jmp __sigjmp_save
#endif
-.size __sigsetjmp,.-__sigsetjmp;
+.size __sigsetjmp,.-__sigsetjmp
#include <features.h>
.text
- .align 4
-.globl syscall
- .type syscall,@function
+.global syscall
+.type syscall,%function
+.align 4
syscall:
pushl %edi
pushl %esi
popl %edi
ret
.Lsize:
- .size syscall,.Lsize-syscall
+.size syscall,.Lsize-syscall
#else
- .text
- .globl __vfork;
- .type __vfork,@function;
- .align 1<<4;
-
+.text
+.global __vfork
+.type __vfork,%function
+.align 1<<4
+
__vfork:
popl %ecx
movl $__NR_vfork,%eax
decl %eax
.Lsize:
- .size __vfork,.Lsize-__vfork
+.size __vfork,.Lsize-__vfork
.weak vfork ; vfork = __vfork