summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/chromium/nacl-cflags-remove-fstack-protector.patch
blob: 0e4f7cfa37f368fbfb5aa38f68d5b9aeed506f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: src/trusted/service_runtime/linux/nacl_bootstrap.gyp
diff --git a/src/trusted/service_runtime/linux/nacl_bootstrap.gyp b/src/trusted/service_runtime/linux/nacl_bootstrap.gyp
index 66d95ca4dc98653219c965b899dbd5ad35d2960c..083e3fdd24ff4562d2037f8d17a06540e05357b8 100644
--- a/src/trusted/service_runtime/linux/nacl_bootstrap.gyp
+++ b/src/trusted/service_runtime/linux/nacl_bootstrap.gyp
@@ -84,6 +84,11 @@
         '-fasan',
         '-faddress-sanitizer',
         '-w',
+        # We filter these out because release_extra_cflags or another
+        # such thing might be adding them in, and those options wind up
+        # coming after the -fno-stack-protector we added above.
+        '-fstack-protector',
+        '-fstack-protector-all',
       ],
       'conditions': [
         ['clang==1', {