Fix segfault on ARM by ELF CREL

This commit is contained in:
klzgrad
2025-05-23 22:23:04 +08:00
parent a323384341
commit b0ba9e2cf6

View File

@@ -628,7 +628,7 @@ config("compiler") {
# Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF
# (excluding toolchains that use an older version of LLVM).
if (is_linux && !llvm_android_mainline &&
if (is_linux && !llvm_android_mainline && current_cpu != "arm" &&
current_cpu != "mipsel" && current_cpu != "mips64el" &&
default_toolchain != "//build/toolchain/cros:target") {
cflags += [ "-Wa,--crel,--allow-experimental-crel" ]