summaryrefslogtreecommitdiffstats
path: root/libc/tools/gensyscalls.py
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-05-21 16:00:13 -0700
committerChristopher Ferris <cferris@google.com>2014-05-21 17:46:52 -0700
commitdf22a121b2c75021585e4eea49fd3af92d579dd0 (patch)
tree927ac89db11ccb8206b7c9d8591830f487d9bb20 /libc/tools/gensyscalls.py
parent3d5a42408ca24f86b8b81697b20012736cb48c2b (diff)
downloadbionic-df22a121b2c75021585e4eea49fd3af92d579dd0.zip
bionic-df22a121b2c75021585e4eea49fd3af92d579dd0.tar.gz
bionic-df22a121b2c75021585e4eea49fd3af92d579dd0.tar.bz2
Add cfi directives for arm64 assembler.
Fix syscall generator to add cfi directives and add the directives for all arm64 assembler. Bug: 15138290 Change-Id: I7f0e4a16c141ac624e5276917a3a1ed45778e057
Diffstat (limited to 'libc/tools/gensyscalls.py')
-rwxr-xr-xlibc/tools/gensyscalls.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py
index 8a5f3d2..87d51e3 100755
--- a/libc/tools/gensyscalls.py
+++ b/libc/tools/gensyscalls.py
@@ -96,14 +96,18 @@ END(%(func)s)
arm64_call = syscall_stub_header + """\
stp x29, x30, [sp, #-16]!
+ .cfi_def_cfa_offset 16
+ .cfi_rel_offset x29, 0
+ .cfi_rel_offset x30, 8
mov x29, sp
- str x8, [sp, #-16]!
mov x8, %(__NR_name)s
svc #0
- ldr x8, [sp], #16
ldp x29, x30, [sp], #16
+ .cfi_def_cfa_offset 0
+ .cfi_restore x29
+ .cfi_restore x30
cmn x0, #(MAX_ERRNO + 1)
cneg x0, x0, hi