diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-09-11 16:19:14 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-09-12 10:51:30 -0700 |
commit | 444dde06ed249ade3966cf9d72cd79a918d56734 (patch) | |
tree | 94513a0700e60ed6d523225afa392ffaafaf860f /recipes-devtools | |
parent | aa59d1c692fadf794b4011b3a9fa7dc8cf0b19cf (diff) | |
download | meta-clang-444dde06ed249ade3966cf9d72cd79a918d56734.tar.gz |
compiler-rt-sanitizers: Fix build on mips
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/clang/clang/0035-Revert-MIPS-compiler-rt-Fix-stat-struct-s-size-for-O.patch | 32 | ||||
-rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0035-Revert-MIPS-compiler-rt-Fix-stat-struct-s-size-for-O.patch b/recipes-devtools/clang/clang/0035-Revert-MIPS-compiler-rt-Fix-stat-struct-s-size-for-O.patch new file mode 100644 index 0000000..f1926f3 --- /dev/null +++ b/recipes-devtools/clang/clang/0035-Revert-MIPS-compiler-rt-Fix-stat-struct-s-size-for-O.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 2d3ac2fb6e291cd11ca482fa4843565c04d414f4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 11 Sep 2022 16:15:36 -0700 | ||
4 | Subject: [PATCH] Revert "[MIPS][compiler-rt] Fix stat struct's size for O32 | ||
5 | ABI" | ||
6 | |||
7 | This reverts commit 2bfb0fcb51510f22723c8cdfefe2a796a0a5ab25. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | .../lib/sanitizer_common/sanitizer_platform_limits_posix.h | 7 +++---- | ||
13 | 1 file changed, 3 insertions(+), 4 deletions(-) | ||
14 | |||
15 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | ||
16 | index bd5692ed511b..a6091307bdce 100644 | ||
17 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | ||
18 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | ||
19 | @@ -98,10 +98,9 @@ const unsigned struct_kernel_stat64_sz = 104; | ||
20 | const unsigned struct_kernel_stat_sz = 144; | ||
21 | const unsigned struct_kernel_stat64_sz = 104; | ||
22 | #elif defined(__mips__) | ||
23 | -const unsigned struct_kernel_stat_sz = | ||
24 | - SANITIZER_ANDROID | ||
25 | - ? FIRST_32_SECOND_64(104, 128) | ||
26 | - : FIRST_32_SECOND_64((_MIPS_SIM == _ABIN32) ? 160 : 144, 216); | ||
27 | +const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID | ||
28 | + ? FIRST_32_SECOND_64(104, 128) | ||
29 | + : FIRST_32_SECOND_64(160, 216); | ||
30 | const unsigned struct_kernel_stat64_sz = 104; | ||
31 | #elif defined(__s390__) && !defined(__s390x__) | ||
32 | const unsigned struct_kernel_stat_sz = 64; | ||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index cb705ef..3a4d504 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -44,6 +44,7 @@ SRC_URI = "\ | |||
44 | file://0032-clang-exclude-openembedded-distributions-from-settin.patch \ | 44 | file://0032-clang-exclude-openembedded-distributions-from-settin.patch \ |
45 | file://0033-compiler-rt-Enable-__int128-for-ppc32.patch \ | 45 | file://0033-compiler-rt-Enable-__int128-for-ppc32.patch \ |
46 | file://0034-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch \ | 46 | file://0034-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch \ |
47 | file://0035-Revert-MIPS-compiler-rt-Fix-stat-struct-s-size-for-O.patch \ | ||
47 | " | 48 | " |
48 | # Fallback to no-PIE if not set | 49 | # Fallback to no-PIE if not set |
49 | GCCPIE ??= "" | 50 | GCCPIE ??= "" |