summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-08 22:36:08 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-08 22:37:16 +0200
commit272f7075ad5ebb169e4b6457875e46f75d2fb2a9 (patch)
tree870a4153838ea2f2412e2b953659197cfbadd555
parent1ba698e2b8b764ead55ea23bf0e6aa830589914d (diff)
downloadclang-272f7075ad5ebb169e4b6457875e46f75d2fb2a9.tar.gz
clang-272f7075ad5ebb169e4b6457875e46f75d2fb2a9.tar.bz2
clang-272f7075ad5ebb169e4b6457875e46f75d2fb2a9.tar.xz
[Embtk] gnutools::Assemble: MIPS: explicitly add -call_nonpic when compiling non PIC code
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org> (cherry picked from commit eb59af8b10ff9621d75e9a57a531783ce898c313)
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 59367ae731..400a953733 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -5909,6 +5909,8 @@ void linuxtools::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
LastPICArg->getOption().matches(options::OPT_fPIE) ||
LastPICArg->getOption().matches(options::OPT_fpie))) {
CmdArgs.push_back("-KPIC");
+ } else {
+ CmdArgs.push_back("-call_nonpic");
}
}