forked from OSchip/llvm-project
Driver/Darwin: Disable movw/movt with -mkernel or -fapple-kext.
llvm-svn: 129721
This commit is contained in:
parent
ec138b4b27
commit
ed904c82b1
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue