aboutsummaryrefslogtreecommitdiff
path: root/libc/arch-arm64/bionic/vfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-arm64/bionic/vfork.S')
-rw-r--r--libc/arch-arm64/bionic/vfork.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/arch-arm64/bionic/vfork.S b/libc/arch-arm64/bionic/vfork.S
index 5cfb8b0cc..df7b063d9 100644
--- a/libc/arch-arm64/bionic/vfork.S
+++ b/libc/arch-arm64/bionic/vfork.S
@@ -67,6 +67,8 @@ __BIONIC_WEAK_ASM_FOR_NATIVE_BRIDGE(vfork)
// Clean up stack shadow in the parent process.
// https://github.com/google/sanitizers/issues/925
+ paciasp
+ .cfi_negate_ra_state
stp x0, x30, [sp, #-16]!
.cfi_adjust_cfa_offset 16
.cfi_rel_offset x0, 0
@@ -79,9 +81,13 @@ __BIONIC_WEAK_ASM_FOR_NATIVE_BRIDGE(vfork)
.cfi_adjust_cfa_offset -16
.cfi_restore x0
.cfi_restore x30
+ autiasp
+ .cfi_negate_ra_state
#endif
.L_exit:
ret
END(vfork)
+
+NOTE_GNU_PROPERTY()