|
|
ce426f |
From 3a3acb6afc753475675b5724f206e619d0c9590d Mon Sep 17 00:00:00 2001
|
|
|
ce426f |
From: Tom Tromey <tromey@redhat.com>
|
|
|
ce426f |
Date: Mon, 20 Jan 2014 12:58:03 +0000
|
|
|
ce426f |
Subject: [PATCH] [AArch64] BZ #16169 Add CFI directives to clone.S
|
|
|
ce426f |
|
|
|
ce426f |
[BZ #16169] Add CFI directives to the AArch64 clone.S implementation
|
|
|
ce426f |
and ensure that the FP in the child is zero'd in order to comply with
|
|
|
ce426f |
AAPCS.
|
|
|
ce426f |
---
|
|
|
ce426f |
NEWS | 8 ++++----
|
|
|
ce426f |
ports/ChangeLog.aarch64 | 6 ++++++
|
|
|
ce426f |
ports/sysdeps/unix/sysv/linux/aarch64/clone.S | 7 ++++++-
|
|
|
ce426f |
3 files changed, 16 insertions(+), 5 deletions(-)
|
|
|
ce426f |
|
|
|
ce426f |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/clone.S
|
|
|
ce426f |
===================================================================
|
|
|
ce426f |
--- glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/clone.S
|
|
|
ce426f |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/clone.S
|
|
|
ce426f |
@@ -63,6 +63,7 @@ ENTRY(__clone)
|
|
|
ce426f |
mov x8, #SYS_ify(clone)
|
|
|
ce426f |
/* X0:flags, x1:newsp, x2:parenttidptr, x3:newtls, x4:childtid. */
|
|
|
ce426f |
svc 0x0
|
|
|
ce426f |
+ cfi_endproc
|
|
|
ce426f |
cmp x0, #0
|
|
|
ce426f |
beq 2f
|
|
|
ce426f |
blt C_SYMBOL_NAME(__syscall_error)
|
|
|
ce426f |
@@ -71,6 +72,9 @@ ENTRY(__clone)
|
|
|
ce426f |
b syscall_error
|
|
|
ce426f |
|
|
|
ce426f |
2:
|
|
|
ce426f |
+ cfi_startproc
|
|
|
ce426f |
+ cfi_undefined (x30)
|
|
|
ce426f |
+ mov x29, 0
|
|
|
ce426f |
#ifdef RESET_PID
|
|
|
ce426f |
tbnz x5, #CLONE_THREAD_BIT, 3f
|
|
|
ce426f |
mov x0, #-1
|
|
|
ce426f |
@@ -92,7 +96,8 @@ ENTRY(__clone)
|
|
|
ce426f |
|
|
|
ce426f |
/* We are done, pass the return value through x0. */
|
|
|
ce426f |
b HIDDEN_JUMPTARGET(_exit)
|
|
|
ce426f |
-
|
|
|
ce426f |
+ cfi_endproc
|
|
|
ce426f |
+ cfi_startproc
|
|
|
ce426f |
PSEUDO_END (__clone)
|
|
|
ce426f |
|
|
|
ce426f |
weak_alias (__clone, clone)
|