From b0ba9e2cf662418d76694bc3fee008bc6b5a2cce Mon Sep 17 00:00:00 2001 From: klzgrad Date: Fri, 23 May 2025 22:23:04 +0800 Subject: [PATCH] Fix segfault on ARM by ELF CREL --- src/build/config/compiler/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn index f6e1f15f8e..abc906b09e 100644 --- a/src/build/config/compiler/BUILD.gn +++ b/src/build/config/compiler/BUILD.gn @@ -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" ]