[cfe-commits] r129721 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Mon Apr 18 14:26:43 PDT 2011
Author: ddunbar
Date: Mon Apr 18 16:26:42 2011
New Revision: 129721
URL: http://llvm.org/viewvc/llvm-project?rev=129721&view=rev
Log:
Driver/Darwin: Disable movw/movt with -mkernel or -fapple-kext.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=129721&r1=129720&r2=129721&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Apr 18 16:26:42 2011
@@ -619,6 +619,12 @@
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
}
}
More information about the cfe-commits
mailing list