From c85b98f7c682efdee15ea86318e1722bbaa7228c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 28 Sep 2023 17:28:13 +0200 Subject: [PATCH] add workaround for chromium chrashes with SIGILL on BTI capable systems (Apple M2) --- chromium.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chromium.spec b/chromium.spec index 973b092c..c81fdd90 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1071,6 +1071,14 @@ FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -W FLAGS+=' -Wno-unused-const-variable -Wno-unneeded-internal-declaration -Wno-unknown-attributes' %endif +# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 +# Disable BTI until this is fixed upstream. +%ifarch aarch64 +%if 0%{?fedora} +FLAGS="${FLAGS/-mbranch-protection=standard/-mbranch-protection=none}" +%endif +%endif + %if %{system_build_flags} CFLAGS=${CFLAGS/-g } CFLAGS=${CFLAGS/-fexceptions}