summaryrefslogtreecommitdiffstats
path: root/libc/tools
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-02-17 10:31:30 -0800
committerKenny Root <kroot@google.com>2011-02-17 10:47:20 -0800
commitf540c03bff8bb15f1954df275629fd32dc87aaf5 (patch)
tree43143108ba950aac32958bd21b0bd87312745d5a /libc/tools
parent420878c6908cf9c2862888477ec3f424a06cf172 (diff)
downloadbionic-f540c03bff8bb15f1954df275629fd32dc87aaf5.zip
bionic-f540c03bff8bb15f1954df275629fd32dc87aaf5.tar.gz
bionic-f540c03bff8bb15f1954df275629fd32dc87aaf5.tar.bz2
libc: ARM: add size info to gensyscalls
Add size information to gensyscalls output for ARM syscalls with new BEGIN(x) and END(x) macros in arch-arm/include/machine/asm.h Change-Id: I791406f8b17abcb83b70a6d15a65a527de15d3f5
Diffstat (limited to 'libc/tools')
-rwxr-xr-xlibc/tools/gensyscalls.py23
1 files changed, 9 insertions, 14 deletions
diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py
index b58754b..c188e04 100755
--- a/libc/tools/gensyscalls.py
+++ b/libc/tools/gensyscalls.py
@@ -79,15 +79,14 @@ x86_return = """ ret
# ARM assembler templates for each syscall stub
#
arm_header = """/* autogenerated by gensyscalls.py */
+#include <machine/asm.h>
#include <sys/linux-syscalls.h>
- .text
- .type %(fname)s, #function
- .globl %(fname)s
- .align 4
- .fnstart
+ENTRY(%(fname)s)
+"""
-%(fname)s:
+arm_footer = """\
+END(%(fname)s)
"""
arm_call_default = arm_header + """\
@@ -95,8 +94,7 @@ arm_call_default = arm_header + """\
movs r0, r0
bxpl lr
b __set_syscall_errno
- .fnend
-"""
+""" + arm_footer
arm_call_long = arm_header + """\
.save {r4, r5, lr}
@@ -108,8 +106,7 @@ arm_call_long = arm_header + """\
movs r0, r0
bxpl lr
b __set_syscall_errno
- .fnend
-"""
+""" + arm_footer
arm_eabi_call_default = arm_header + """\
.save {r4, r7}
@@ -120,8 +117,7 @@ arm_eabi_call_default = arm_header + """\
movs r0, r0
bxpl lr
b __set_syscall_errno
- .fnend
-"""
+""" + arm_footer
arm_eabi_call_long = arm_header + """\
mov ip, sp
@@ -134,8 +130,7 @@ arm_eabi_call_long = arm_header + """\
movs r0, r0
bxpl lr
b __set_syscall_errno
- .fnend
-"""
+""" + arm_footer
# ARM thumb assembler templates for each syscall stub
#