summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2017-07-27 20:13:44 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2017-07-27 20:13:44 +0000
commit3bd090033b6d00d90ae95f4310f432c151ed044e (patch)
tree2277a7fc09ee2df15df6990191970921f4159216 /gnu
parentc86b747b2bc405c07e715e54fb19caaeaafa3552 (diff)
push back -pie to the linker if -pie is specified to avoid an unused argument
warning ok kettenis@, deraadt@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/llvm/tools/clang/lib/Driver/Tools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/llvm/tools/clang/lib/Driver/Tools.cpp b/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
index 5eeb81f3039..f6926813643 100644
--- a/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
+++ b/gnu/llvm/tools/clang/lib/Driver/Tools.cpp
@@ -8936,6 +8936,9 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
}
}
+ if (Args.hasArg(options::OPT_pie))
+ CmdArgs.push_back("-pie");
+
if (Args.hasArg(options::OPT_nopie))
CmdArgs.push_back("-nopie");