diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-08 22:36:08 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-08 22:37:16 +0200 |
commit | 272f7075ad5ebb169e4b6457875e46f75d2fb2a9 (patch) | |
tree | 870a4153838ea2f2412e2b953659197cfbadd555 | |
parent | 1ba698e2b8b764ead55ea23bf0e6aa830589914d (diff) | |
download | clang-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.cpp | 2 |
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"); } } |