diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-09-06 22:21:56 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-09-06 22:21:56 +0000 |
commit | 6c0201a23bc93e3346c54f5c685ba9d77423f365 (patch) | |
tree | 16c7248996e0e65ce3a20ef813ecb1feee494b43 /checkbuild.py | |
parent | 8d208d050c690eed490883084e7a07a1e94c9db8 (diff) | |
parent | 1ae91a2fb88da661c4dad33172c336690ab9f3a0 (diff) | |
download | ndk-6c0201a23bc93e3346c54f5c685ba9d77423f365.tar.gz |
Merge "Build CRT objects with noexecstack"
Diffstat (limited to 'checkbuild.py')
-rwxr-xr-x | checkbuild.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/checkbuild.py b/checkbuild.py index 7e0a024f1..c919658a5 100755 --- a/checkbuild.py +++ b/checkbuild.py @@ -1013,7 +1013,9 @@ class Platforms(ndk.builds.Module): '-DPLATFORM_SDK_VERSION={}'.format(api), '-DABI_NDK_VERSION="{}"'.format(ndk.config.release), '-DABI_NDK_BUILD_NUMBER="{}"'.format(build_number), - '-O2', '-fpic', '-Wl,-r', '-no-pie', '-nostdlib', '-o', dst, + '-O2', '-fpic', '-Wl,-r', '-no-pie', '-nostdlib', + '-Wa,--noexecstack', '-Wl,-z,noexecstack', + '-o', dst, ] + srcs return args |