diff options
| -rw-r--r-- | meta-oe/recipes-devtools/breakpad/breakpad/0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/breakpad/breakpad_git.bb | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch b/meta-oe/recipes-devtools/breakpad/breakpad/0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch new file mode 100644 index 0000000000..afe8a61b29 --- /dev/null +++ b/meta-oe/recipes-devtools/breakpad/breakpad/0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 66a2b6e4ba8e2b49115043127ce4aa0fcd71ad1e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 11 May 2021 11:12:35 -0700 | ||
| 4 | Subject: [PATCH] exception_handler.cc: Match the types for SIGSTKSZ | ||
| 5 | |||
| 6 | In glibc 2.34, SIGSTKSZ is a syscall which returns a long int, therefore | ||
| 7 | current check fails | ||
| 8 | |||
| 9 | | ../git/src/client/linux/handler/exception_handler.cc:141:49: error: no matching function for call to 'max(int, long int)' | ||
| 10 | | 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); | ||
| 11 | | | ~~~~~~~~^~~~~~~~~~~~~~~~~ | ||
| 12 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | src/client/linux/handler/exception_handler.cc | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc | ||
| 20 | index ca353c40..dc0fc4a9 100644 | ||
| 21 | --- a/src/client/linux/handler/exception_handler.cc | ||
| 22 | +++ b/src/client/linux/handler/exception_handler.cc | ||
| 23 | @@ -138,7 +138,7 @@ void InstallAlternateStackLocked() { | ||
| 24 | // SIGSTKSZ may be too small to prevent the signal handlers from overrunning | ||
| 25 | // the alternative stack. Ensure that the size of the alternative stack is | ||
| 26 | // large enough. | ||
| 27 | - static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); | ||
| 28 | + static const unsigned kSigStackSize = std::max(16384u, (unsigned)SIGSTKSZ); | ||
| 29 | |||
| 30 | // Only set an alternative stack if there isn't already one, or if the current | ||
| 31 | // one is too small. | ||
| 32 | -- | ||
| 33 | 2.31.1 | ||
| 34 | |||
diff --git a/meta-oe/recipes-devtools/breakpad/breakpad_git.bb b/meta-oe/recipes-devtools/breakpad/breakpad_git.bb index 81955f450d..4756ef772d 100644 --- a/meta-oe/recipes-devtools/breakpad/breakpad_git.bb +++ b/meta-oe/recipes-devtools/breakpad/breakpad_git.bb | |||
| @@ -40,6 +40,7 @@ SRC_URI = "git://github.com/google/breakpad;name=breakpad;branch=main \ | |||
| 40 | file://0004-elf_reader.cc-include-sys-reg.h-to-get-__WORDSIZE-on.patch \ | 40 | file://0004-elf_reader.cc-include-sys-reg.h-to-get-__WORDSIZE-on.patch \ |
| 41 | file://mcontext.patch \ | 41 | file://mcontext.patch \ |
| 42 | file://0001-Remove-HAVE_GETCONTEXT-check-to-add-local-implementa.patch \ | 42 | file://0001-Remove-HAVE_GETCONTEXT-check-to-add-local-implementa.patch \ |
| 43 | file://0001-exception_handler.cc-Match-the-types-for-SIGSTKSZ.patch \ | ||
| 43 | file://0001-lss-Match-syscalls-to-match-musl.patch;patchdir=src/third_party/lss \ | 44 | 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 \ | 45 | file://mips_asm_sgidefs.patch;patchdir=src/third_party/lss \ |
| 45 | file://0001-Do-not-add-stack-pointer-to-clobber-list.patch;patchdir=src/third_party/lss \ | 46 | file://0001-Do-not-add-stack-pointer-to-clobber-list.patch;patchdir=src/third_party/lss \ |
