Merge pull request #11999 from electron/no_execstack

Explicitly disable executable stack
This commit is contained in:
John Kleinschmidt
2018-02-21 14:00:47 -05:00
committed by GitHub

View File

@@ -138,6 +138,9 @@
'-D__STRICT_ANSI__',
'-fno-rtti',
],
'ldflags': [
'-Wl,-z,noexecstack',
],
}], # OS=="linux"
['OS=="mac"', {
'defines': [
@@ -291,6 +294,7 @@
'ldflags': [
'-flto=thin',
'-fuse-ld=lld', # Chromium Clang uses lld for doing LTO
'-Wl,--icf=all',
'-Wl,--lto-O0', # this could be removed in future; see https://codereview.chromium.org/2939923004
'-Wl,-mllvm,-function-sections',
'-Wl,-mllvm,-data-sections',