diff --git a/patches/chromium/.patches b/patches/chromium/.patches index b76c37f09b..a56c656ff1 100644 --- a/patches/chromium/.patches +++ b/patches/chromium/.patches @@ -133,3 +133,4 @@ osr_shared_texture_remove_keyed_mutex_on_win_dxgi.patch feat_allow_usage_of_sccontentsharingpicker_on_supported_platforms.patch chore_partial_revert_of.patch fix_software_compositing_infinite_loop.patch +disable_elf_crel_on_linux_arm.patch diff --git a/patches/chromium/disable_elf_crel_on_linux_arm.patch b/patches/chromium/disable_elf_crel_on_linux_arm.patch new file mode 100644 index 0000000000..b5961af8d0 --- /dev/null +++ b/patches/chromium/disable_elf_crel_on_linux_arm.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: John Kleinschmidt +Date: Tue, 29 Oct 2024 16:12:28 -0400 +Subject: disable ELF CREL on Linux Arm + +https://chromium-review.googlesource.com/c/chromium/src/+/5938657 +enabled ELF CREL, but this causes a Segmentation fault in GetAccessFlags +in page_allocator_internals_posix.cc when running on, so disable +ELF CREL on Linux Arm + +diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn +index 80ff9bded88bfcfcbf2c0bb7b2bdb430cacaf003..80f2521c8dc9f6e8f99d64e86d237085ebefdede 100644 +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -619,7 +619,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" && + default_toolchain != "//build/toolchain/cros:target") { + cflags += [ "-Wa,--crel,--allow-experimental-crel" ] + }