Merge pull request #11999 from electron/no_execstack
Explicitly disable executable stack
This commit is contained in:
commit
b4ae41b484
1 changed files with 4 additions and 0 deletions
|
@ -138,6 +138,9 @@
|
||||||
'-D__STRICT_ANSI__',
|
'-D__STRICT_ANSI__',
|
||||||
'-fno-rtti',
|
'-fno-rtti',
|
||||||
],
|
],
|
||||||
|
'ldflags': [
|
||||||
|
'-Wl,-z,noexecstack',
|
||||||
|
],
|
||||||
}], # OS=="linux"
|
}], # OS=="linux"
|
||||||
['OS=="mac"', {
|
['OS=="mac"', {
|
||||||
'defines': [
|
'defines': [
|
||||||
|
@ -291,6 +294,7 @@
|
||||||
'ldflags': [
|
'ldflags': [
|
||||||
'-flto=thin',
|
'-flto=thin',
|
||||||
'-fuse-ld=lld', # Chromium Clang uses lld for doing LTO
|
'-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,--lto-O0', # this could be removed in future; see https://codereview.chromium.org/2939923004
|
||||||
'-Wl,-mllvm,-function-sections',
|
'-Wl,-mllvm,-function-sections',
|
||||||
'-Wl,-mllvm,-data-sections',
|
'-Wl,-mllvm,-data-sections',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue