1111
|
1 |
From 91bb79836ee274855393bdf6ab10e24899b1b349 Mon Sep 17 00:00:00 2001
|
|
2 |
From: Martin Liska <mliska@suse.cz>
|
|
3 |
Date: Fri, 17 May 2019 14:41:35 +0200
|
|
4 |
Subject: [PATCH] Fix top-level asm issue.
|
|
5 |
|
|
6 |
---
|
|
7 |
security/sandbox/linux/moz.build | 5 ++++-
|
|
8 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
9 |
|
|
10 |
diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build
|
|
11 |
index aae85843e9f6..208368dfd189 100644
|
|
12 |
--- a/security/sandbox/linux/moz.build
|
|
13 |
+++ b/security/sandbox/linux/moz.build
|
|
14 |
@@ -61,7 +61,6 @@ UNIFIED_SOURCES += [
|
|
15 |
'../chromium/sandbox/linux/bpf_dsl/policy_compiler.cc',
|
|
16 |
'../chromium/sandbox/linux/bpf_dsl/syscall_set.cc',
|
|
17 |
'../chromium/sandbox/linux/seccomp-bpf/die.cc',
|
|
18 |
- '../chromium/sandbox/linux/seccomp-bpf/syscall.cc',
|
|
19 |
'broker/SandboxBrokerCommon.cpp',
|
|
20 |
'Sandbox.cpp',
|
|
21 |
'SandboxBrokerClient.cpp',
|
|
22 |
@@ -77,6 +76,7 @@ UNIFIED_SOURCES += [
|
|
23 |
SOURCES += [
|
|
24 |
'../chromium/base/strings/safe_sprintf.cc',
|
|
25 |
'../chromium/base/third_party/icu/icu_utf.cc',
|
|
26 |
+ '../chromium/sandbox/linux/seccomp-bpf/syscall.cc',
|
|
27 |
'../chromium/sandbox/linux/seccomp-bpf/trap.cc',
|
|
28 |
'../chromium/sandbox/linux/services/syscall_wrappers.cc',
|
|
29 |
]
|
|
30 |
@@ -96,6 +96,9 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|
31 |
SOURCES['../chromium/sandbox/linux/services/syscall_wrappers.cc'].flags += [
|
|
32 |
'-Wno-empty-body',
|
|
33 |
]
|
|
34 |
+ SOURCES['../chromium/sandbox/linux/seccomp-bpf/syscall.cc'].flags += [
|
|
35 |
+ '-fno-lto'
|
|
36 |
+ ]
|
|
37 |
|
|
38 |
# gcc lto likes to put the top level asm in syscall.cc in a different partition
|
|
39 |
# from the function using it which breaks the build. Work around that by
|
|
40 |
--
|
|
41 |
2.23.0
|
|
42 |
|