From: Pengxuan Zheng Date: Tue, 21 Jun 2022 01:44:32 +0000 (-0700) Subject: [LLD][COFF] Ignore /kernel flag X-Git-Tag: upstream/15.0.7~2858 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5e49cdea971742d2fbc8ae35878fcc21daebba1;p=platform%2Fupstream%2Fllvm.git [LLD][COFF] Ignore /kernel flag 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 --- diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td index 2d87a5e..9f29ea0 100644 --- a/lld/COFF/Options.td +++ b/lld/COFF/Options.td @@ -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">;