summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/arm/__longjmp.S7
-rw-r--r--libc/sysdeps/linux/arm/bsd-_setjmp.S7
-rw-r--r--libc/sysdeps/linux/arm/bsd-setjmp.S7
-rw-r--r--libc/sysdeps/linux/arm/clone.S12
-rw-r--r--libc/sysdeps/linux/arm/mmap64.S12
-rw-r--r--libc/sysdeps/linux/arm/setjmp.S7
-rw-r--r--libc/sysdeps/linux/arm/sigrestorer.S8
-rw-r--r--libc/sysdeps/linux/arm/vfork.S10
8 files changed, 37 insertions, 33 deletions
diff --git a/libc/sysdeps/linux/arm/__longjmp.S b/libc/sysdeps/linux/arm/__longjmp.S
index e280d842d..44837911b 100644
--- a/libc/sysdeps/linux/arm/__longjmp.S
+++ b/libc/sysdeps/linux/arm/__longjmp.S
@@ -23,9 +23,9 @@
#include <bits/setjmp.h>
-.globl __longjmp;
+.global __longjmp
.type __longjmp,%function
-.align 4;
+.align 4
__longjmp:
mov ip, r0 /* save jmp_buf pointer */
@@ -39,4 +39,5 @@ __longjmp:
#endif
ldmia ip , {v1-v6, sl, fp, sp, pc}
-.size __longjmp,.-__longjmp;
+
+.size __longjmp,.-__longjmp
diff --git a/libc/sysdeps/linux/arm/bsd-_setjmp.S b/libc/sysdeps/linux/arm/bsd-_setjmp.S
index 83cbd6ecf..3f3a986b3 100644
--- a/libc/sysdeps/linux/arm/bsd-_setjmp.S
+++ b/libc/sysdeps/linux/arm/bsd-_setjmp.S
@@ -25,9 +25,9 @@
#define _ASM
#include <bits/setjmp.h>
-.globl _setjmp;
+.global _setjmp
.type _setjmp,%function
-.align 4;
+.align 4
_setjmp:
mov r1, #0
#ifdef __PIC__
@@ -35,4 +35,5 @@ _setjmp:
#else
b __sigsetjmp
#endif
-.size _setjmp,.-_setjmp;
+
+.size _setjmp,.-_setjmp
diff --git a/libc/sysdeps/linux/arm/bsd-setjmp.S b/libc/sysdeps/linux/arm/bsd-setjmp.S
index 1bbddc53c..3e5ff59fa 100644
--- a/libc/sysdeps/linux/arm/bsd-setjmp.S
+++ b/libc/sysdeps/linux/arm/bsd-setjmp.S
@@ -25,9 +25,9 @@
#define _ASM
#include <bits/setjmp.h>
-.globl setjmp;
+.global setjmp
.type setjmp,%function
-.align 4;
+.align 4
setjmp:
mov r1, #1
#ifdef __PIC__
@@ -35,4 +35,5 @@ setjmp:
#else
b __sigsetjmp
#endif
-.size setjmp,.-setjmp;
+
+.size setjmp,.-setjmp
diff --git a/libc/sysdeps/linux/arm/clone.S b/libc/sysdeps/linux/arm/clone.S
index 7b5bf2ee3..a4d5f99bd 100644
--- a/libc/sysdeps/linux/arm/clone.S
+++ b/libc/sysdeps/linux/arm/clone.S
@@ -27,10 +27,10 @@
#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
@@ -68,9 +68,9 @@ __clone:
__error:
b __syscall_error
- .size __clone,.-__clone
+.size __clone,.-__clone
- .weak clone
+.weak clone
clone = __clone
#endif
diff --git a/libc/sysdeps/linux/arm/mmap64.S b/libc/sysdeps/linux/arm/mmap64.S
index 310a60c5f..63b02f9df 100644
--- a/libc/sysdeps/linux/arm/mmap64.S
+++ b/libc/sysdeps/linux/arm/mmap64.S
@@ -23,11 +23,11 @@
#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]
@@ -65,6 +65,6 @@ mmap64:
__error:
b __syscall_error
- .size mmap64,.-mmap64
+.size mmap64,.-mmap64
#endif
diff --git a/libc/sysdeps/linux/arm/setjmp.S b/libc/sysdeps/linux/arm/setjmp.S
index 47ddf4adb..62d038cc5 100644
--- a/libc/sysdeps/linux/arm/setjmp.S
+++ b/libc/sysdeps/linux/arm/setjmp.S
@@ -22,9 +22,9 @@
#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__
@@ -43,4 +43,5 @@ __sigsetjmp:
#else
B __sigjmp_save
#endif
-.size __sigsetjmp,.-__sigsetjmp;
+
+.size __sigsetjmp,.-__sigsetjmp
diff --git a/libc/sysdeps/linux/arm/sigrestorer.S b/libc/sysdeps/linux/arm/sigrestorer.S
index a90881eb0..b4e17326b 100644
--- a/libc/sysdeps/linux/arm/sigrestorer.S
+++ b/libc/sysdeps/linux/arm/sigrestorer.S
@@ -22,18 +22,18 @@
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
diff --git a/libc/sysdeps/linux/arm/vfork.S b/libc/sysdeps/linux/arm/vfork.S
index eecf56b8c..cf9d3d8d6 100644
--- a/libc/sysdeps/linux/arm/vfork.S
+++ b/libc/sysdeps/linux/arm/vfork.S
@@ -25,10 +25,10 @@
#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
@@ -52,5 +52,5 @@ vfork:
__error:
b __syscall_error
- .size vfork,.-vfork
+.size vfork,.-vfork
#endif