summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-04-05 00:42:45 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-04-05 05:55:53 +0200
commit1ce28e5a248b15e278e8585c154c38c31574ca83 (patch)
treefae97daabbe2ea3c8ce0994b8b325ebc86148e78 /meson.build
parenthwdb: fix missing colon (#32108) (diff)
downloadsystemd-1ce28e5a248b15e278e8585c154c38c31574ca83.tar.xz
systemd-1ce28e5a248b15e278e8585c154c38c31574ca83.zip
meson: set -fno-ssa-phiopt when building bpf with gcc
There are bugs in the kernel verifier that cause legitimate code to be rejected, disabling this optimization makes bpf programs built with a new enough gcc work again. Fixes https://github.com/systemd/systemd/issues/31888
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f4b382c602..1c4cac82c1 100644
--- a/meson.build
+++ b/meson.build
@@ -1701,6 +1701,7 @@ if conf.get('BPF_FRAMEWORK') == 1
bpf_gcc_flags = [
'-std=gnu11',
'-fno-stack-protector',
+ '-fno-ssa-phiopt',
'-O2',
'-mcpu=v3',
'-mco-re',