#include <bits/setjmp.h>
-.globl __longjmp;
+.global __longjmp
.type __longjmp,%function
-.align 4;
+.align 4
__longjmp:
mov ip, r0 /* save jmp_buf pointer */
#endif
ldmia ip , {v1-v6, sl, fp, sp, pc}
-.size __longjmp,.-__longjmp;
+
+.size __longjmp,.-__longjmp
#define _ASM
#include <bits/setjmp.h>
-.globl _setjmp;
+.global _setjmp
.type _setjmp,%function
-.align 4;
+.align 4
_setjmp:
mov r1, #0
#ifdef __PIC__
#else
b __sigsetjmp
#endif
-.size _setjmp,.-_setjmp;
+
+.size _setjmp,.-_setjmp
#define _ASM
#include <bits/setjmp.h>
-.globl setjmp;
+.global setjmp
.type setjmp,%function
-.align 4;
+.align 4
setjmp:
mov r1, #1
#ifdef __PIC__
#else
b __sigsetjmp
#endif
-.size setjmp,.-setjmp;
+
+.size setjmp,.-setjmp
#ifdef __NR_clone
/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */
- .text
- .globl __clone
- .type __clone,%function
- .align 4
+.text
+.global __clone
+.type __clone,%function
+.align 4
__clone:
@ sanity check args
cmp r0, #0
__error:
b __syscall_error
- .size __clone,.-__clone
+.size __clone,.-__clone
- .weak clone
+.weak clone
clone = __clone
#endif
#if defined __UCLIBC_HAS_LFS__ && defined __NR_mmap2
- /* The mmap2 system call takes six arguments, all in registers. */
- .text
- .global mmap64
- .type mmap64,%function
- .align 4
+/* The mmap2 system call takes six arguments, all in registers. */
+.text
+.global mmap64
+.type mmap64,%function
+.align 4
mmap64:
stmfd sp!, {r4, r5, lr}
ldr r5, [sp, $16]
__error:
b __syscall_error
- .size mmap64,.-mmap64
+.size mmap64,.-mmap64
#endif
#define _ASM
#include <bits/setjmp.h>
-.globl __sigsetjmp;
+.global __sigsetjmp
.type __sigsetjmp,%function
-.align 4;
+.align 4
__sigsetjmp:
/* Save registers */
#if defined __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__
#else
B __sigjmp_save
#endif
-.size __sigsetjmp,.-__sigsetjmp;
+
+.size __sigsetjmp,.-__sigsetjmp
one of these. This avoids the need for the kernel to synthesise a return
instruction on the stack, which would involve expensive cache flushes. */
-.globl __default_sa_restorer;
+.global __default_sa_restorer
.type __default_sa_restorer,%function
-.align 4;
+.align 4
__default_sa_restorer:
swi __NR_sigreturn
#ifdef __NR_rt_sigreturn
-.globl __default_rt_sa_restorer;
+.global __default_rt_sa_restorer
.type __default_rt_sa_restorer,%function
-.align 4;
+.align 4
__default_rt_sa_restorer:
swi __NR_rt_sigreturn
#include <sys/syscall.h>
#ifdef __NR_fork
- .text
- .global vfork
- .type vfork,%function
- .align 4
+.text
+.global vfork
+.type vfork,%function
+.align 4
vfork:
#ifdef __NR_vfork
__error:
b __syscall_error
- .size vfork,.-vfork
+.size vfork,.-vfork
#endif