This is an archive of the discontinued LLVM Phabricator instance.

[lld][WindowsKernel]add RELEASE options
AbandonedPublic

Authored by Qfrost911 on Oct 21 2022, 4:23 AM.

Details

Summary

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

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.

Diff Detail

Event Timeline

Qfrost911 created this revision.Oct 21 2022, 4:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 4:23 AM
Qfrost911 requested review of this revision.Oct 21 2022, 4:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 4:23 AM
Qfrost911 abandoned this revision.Dec 8 2022, 8:44 PM