diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-12-22 16:24:44 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-12-23 13:29:20 -0800 |
commit | bf5cc7e1ffad95184079d69c6ab59ba96e5e0806 (patch) | |
tree | 0c9ad5e1ad1a9aae34cb54e2a90c0586cd746c0a | |
parent | 3d33a2ecd6f8f776a7eb9cb41eabd15419725671 (diff) | |
download | meta-openembedded-bf5cc7e1ffad95184079d69c6ab59ba96e5e0806.tar.gz |
breakpad: Fix build with gcc9 on x86
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-devtools/breakpad/breakpad/dont-clobber-rsp.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/breakpad/breakpad_git.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/dont-clobber-rsp.patch b/meta-oe/recipes-devtools/breakpad/breakpad/dont-clobber-rsp.patch new file mode 100644 index 0000000000..b1c37fc8e9 --- /dev/null +++ b/meta-oe/recipes-devtools/breakpad/breakpad/dont-clobber-rsp.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Do not add stack pointer to clobber list | ||
2 | |||
3 | it was being ignored until gcc 9.0 became capable | ||
4 | of flagging this silent ignoring via [1] | ||
5 | |||
6 | [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52813<Paste> | ||
7 | |||
8 | Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/linux-syscall-support/+/1390160] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | --- a/src/third_party/lss/linux_syscall_support.h | ||
12 | +++ b/src/third_party/lss/linux_syscall_support.h | ||
13 | @@ -1966,7 +1966,7 @@ struct kernel_statfs { | ||
14 | __asm__ volatile(LSS_ENTRYPOINT \ | ||
15 | : "=a" (__res) \ | ||
16 | : "0" (__NR_##name) \ | ||
17 | - : "esp", "memory"); \ | ||
18 | + : "memory"); \ | ||
19 | LSS_RETURN(type,__res); \ | ||
20 | } | ||
21 | #undef _syscall1 | ||
22 | @@ -2407,7 +2407,7 @@ struct kernel_statfs { | ||
23 | "d"(LSS_SYSCALL_ARG(parent_tidptr)), | ||
24 | "r"(LSS_SYSCALL_ARG(newtls)), | ||
25 | "r"(LSS_SYSCALL_ARG(child_tidptr)) | ||
26 | - : "rsp", "memory", "r8", "r10", "r11", "rcx"); | ||
27 | + : "memory", "r8", "r10", "r11", "rcx"); | ||
28 | } | ||
29 | LSS_RETURN(int, __res); | ||
30 | } | ||
diff --git a/meta-oe/recipes-devtools/breakpad/breakpad_git.bb b/meta-oe/recipes-devtools/breakpad/breakpad_git.bb index 2bc0aacb0f..528c237564 100644 --- a/meta-oe/recipes-devtools/breakpad/breakpad_git.bb +++ b/meta-oe/recipes-devtools/breakpad/breakpad_git.bb | |||
@@ -42,6 +42,7 @@ SRC_URI = "git://github.com/google/breakpad;name=breakpad \ | |||
42 | file://0001-disable-calls-to-getcontext-with-musl.patch \ | 42 | file://0001-disable-calls-to-getcontext-with-musl.patch \ |
43 | file://0001-lss-Match-syscalls-to-match-musl.patch;patchdir=src/third_party/lss \ | 43 | file://0001-lss-Match-syscalls-to-match-musl.patch;patchdir=src/third_party/lss \ |
44 | file://mips_asm_sgidefs.patch;patchdir=src/third_party/lss \ | 44 | file://mips_asm_sgidefs.patch;patchdir=src/third_party/lss \ |
45 | file://dont-clobber-rsp.patch \ | ||
45 | " | 46 | " |
46 | S = "${WORKDIR}/git" | 47 | S = "${WORKDIR}/git" |
47 | 48 | ||