[LLD][COFF] Ignore /kernel flag
authorPengxuan Zheng <pzheng@quicinc.com>
Tue, 21 Jun 2022 01:44:32 +0000 (18:44 -0700)
committerPengxuan Zheng <pzheng@quicinc.com>
Fri, 1 Jul 2022 17:03:02 +0000 (10:03 -0700)
There exists some description of the flag from Microsoft, but not sure if
there's more to it. We ignore the flag for now until we find out more about it.

https://docs.microsoft.com/en-us/cpp/build/reference/kernel-create-kernel-mode-binary?view=msvc-170

Reviewed By: thieta, hans

Differential Revision: https://reviews.llvm.org/D128238

lld/COFF/Options.td

index 2d87a5e..9f29ea0 100644 (file)
@@ -296,6 +296,7 @@ def nologo : F<"nologo">;
 def throwingnew : F<"throwingnew">;
 def editandcontinue : F<"editandcontinue">;
 def fastfail : F<"fastfail">;
+def kernel : F<"kernel">;
 def pdbcompress : F<"pdbcompress">;
 
 def delay : P_priv<"delay">;