diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2017-07-27 20:13:44 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2017-07-27 20:13:44 +0000 |
commit | 3bd090033b6d00d90ae95f4310f432c151ed044e (patch) | |
tree | 2277a7fc09ee2df15df6990191970921f4159216 /gnu | |
parent | c86b747b2bc405c07e715e54fb19caaeaafa3552 (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.cpp | 3 |
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"); |