This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 1/7] powerpc: Add CFI information on indirect syscall
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Tue, 4 Sep 2018 17:45:47 -0300
- Subject: [PATCH 1/7] powerpc: Add CFI information on indirect syscall
- References: <20180904204553.6971-1-adhemerval.zanella@linaro.org>
This patch the required CFI information on powerpc indirect syscall
so backtrace works correctly on signal handler.
Checked on powerpc-linux-gnu and powerpc64le-linux-gnu.
* sysdeps/unix/sysv/linux/powerpc/syscall.S (syscall): Add CFI
information.
---
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/powerpc/syscall.S | 1 +
2 files changed, 6 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/powerpc/syscall.S b/sysdeps/unix/sysv/linux/powerpc/syscall.S
index 2da91721be..e30f461a17 100644
--- a/sysdeps/unix/sysv/linux/powerpc/syscall.S
+++ b/sysdeps/unix/sysv/linux/powerpc/syscall.S
@@ -19,6 +19,7 @@
ENTRY (syscall)
ABORT_TRANSACTION
+ cfi_def_cfa_offset (0)
mr r0,r3
mr r3,r4
mr r4,r5
--
2.17.1