summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/selinux/android-tools/android-tools/libunwind-debian/user_pt_regs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/libunwind-debian/user_pt_regs.patch')
-rw-r--r--dynamic-layers/selinux/android-tools/android-tools/libunwind-debian/user_pt_regs.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/libunwind-debian/user_pt_regs.patch b/dynamic-layers/selinux/android-tools/android-tools/libunwind-debian/user_pt_regs.patch
new file mode 100644
index 0000000..8051b6d
--- /dev/null
+++ b/dynamic-layers/selinux/android-tools/android-tools/libunwind-debian/user_pt_regs.patch
@@ -0,0 +1,23 @@
1Author: Kai-Chung Yan <seamlikok@gmail.com>
2Last-Update: 2016-08-24
3Description: Manual definition of struct user_pt_regs
4 On ARM64, libunwind uses struct user_pt_regs which is not defined in
5 anywhere, which causes FTBFS.
6--- a/src/ptrace/_UPT_access_reg.c
7+++ b/src/ptrace/_UPT_access_reg.c
8@@ -26,6 +26,15 @@
9
10 #include "_UPT_internal.h"
11
12+#if defined(__aarch64__)
13+ struct user_pt_regs {
14+ __u64 regs[31];
15+ __u64 sp;
16+ __u64 pc;
17+ __u64 pstate;
18+ };
19+#endif
20+
21 #if UNW_TARGET_IA64
22 # include <elf.h>
23 # ifdef HAVE_ASM_PTRACE_OFFSETS_H