Let -static-pie win if it is specified along with -pie or -static.
authorSiva Chandra <sivachandra@google.com>
Tue, 21 May 2019 21:09:05 +0000 (21:09 +0000)
committerSiva Chandra <sivachandra@google.com>
Tue, 21 May 2019 21:09:05 +0000 (21:09 +0000)
commit8692af253c93c2f32b419a832e1cc2caf63669fb
tree0399d90ad46d37c40c5d681af97b52ef9b08564a
parent17fdf1d38307fc99d6a7c417c13e8bc3857ac516
Let -static-pie win if it is specified along with -pie or -static.

Also, disallow specifying -no-pie/-nopie along with -static-pie.

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

llvm-svn: 361312
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/Driver/linux-ld.c