[PATCH] D136441: [lld][WindowsKernel]add RELEASE options
Qfrost via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 04:23:37 PDT 2022
Qfrost911 created this revision.
Qfrost911 added reviewers: tentzen, rnk, JosephTremoulet.
Herald added a project: All.
Qfrost911 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Building NT Kernel Driver, especially under Visual Studio, an option named "RELEASE" will be set, which can add checksum to COFF. So an error will occur.
RELEASE <https://learn.microsoft.com/zh-cn/cpp/build/reference/release-set-the-checksum?view=msvc-170>
lld-link : error : could not open '/RELEASE': no such file or directory
This option like "kernel" and "pdbcompress", is defined only for link.exe compatibility. Moreover, in NT Kernel Driver, checksum is not commonly used, because OS uses CA to check raw file.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136441
Files:
lld/COFF/Options.td
Index: lld/COFF/Options.td
===================================================================
--- lld/COFF/Options.td
+++ lld/COFF/Options.td
@@ -305,6 +305,7 @@
def fastfail : F<"fastfail">;
def kernel : F<"kernel">;
def pdbcompress : F<"pdbcompress">;
+def release : F<"release">;
def emitpogophaseinfo : F<"emitpogophaseinfo">;
def delay : P_priv<"delay">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136441.469545.patch
Type: text/x-patch
Size: 368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221021/bfa23011/attachment.bin>
More information about the llvm-commits
mailing list