]> granicus.if.org Git - clang/commit
[Driver] Default to `-z now` and `-z relro` on Android.
authorDan Albert <danalbert@google.com>
Thu, 11 Oct 2018 20:57:54 +0000 (20:57 +0000)
committerDan Albert <danalbert@google.com>
Thu, 11 Oct 2018 20:57:54 +0000 (20:57 +0000)
commitdbf5b5d3fd496422c5b6e87830afd6c9ea9cd0fb
tree5120a38c6e73772326eaf4db5ddbd08f71a0875d
parentf3961d46c88845a099c9eefec828f891302c14c6
[Driver] Default to `-z now` and `-z relro` on Android.

Summary:
RTLD_LAZY is not supported on Android (though failing to use `-z now`
will work since it is assumed by the loader).

RelRO is required.

Reviewers: srhines, pirama

Reviewed By: srhines

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D53117

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344295 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Linux.cpp
test/Driver/linux-ld.c