Driver/Darwin: Disable movw/movt with -mkernel or -fapple-kext.

llvm-svn: 129721
This commit is contained in:
Daniel Dunbar 2011-04-18 21:26:42 +00:00
parent ec138b4b27
commit ed904c82b1
1 changed files with 6 additions and 0 deletions

View File

@ -619,6 +619,12 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-strict-align");
// The kext linker doesn't know how to deal with movw/movt.
#ifndef DISABLE_ARM_DARWIN_USE_MOVT
CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-darwin-use-movt=0");
#endif
}
}