mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #11999 from electron/no_execstack
Explicitly disable executable stack
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user