зеркало из https://github.com/electron/electron.git
chore: disable ELF CREL on Linux Arm
5938657: Reapply "Enable ELF CREL, which reduces the size of ELF relocatable object files." | https://chromium-review.googlesource.com/c/chromium/src/+/5938657
This commit is contained in:
Родитель
7be81bdd02
Коммит
48c5efd0b0
|
@ -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
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: John Kleinschmidt <jkleinsc@electronjs.org>
|
||||
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" ]
|
||||
}
|
Загрузка…
Ссылка в новой задаче