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
commit b4ae41b484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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',