This patch implements /driver, /driver:wdm and /driver:uponly as
described in https://docs.microsoft.com/en-us/cpp/build/reference/driver-windows-nt-kernel-mode-driver?view=vs-2019.
Details
- Reviewers
thakis - Commits
- rGf95ed69641d5: Implement /driver, /driver:wdm and /driver:uponly
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks good, some suggestions on additional things that might be interesting to check below.
Did someone ask for this, or is this just for fun / completeness? (Either's fine of course, just curious)
lld/test/COFF/driver-opt.s | ||
---|---|---|
5 | What does link.exe do with /fixed /driver and /driver /fixed? | |
21 | What does link.exe say to /driver:uponly,wdm ? |
I wanted to add a warning for /driver for https://bugs.llvm.org/show_bug.cgi?id=43911
and then realized that /driver is not actually implemented. So this option may not be
something that people are actively using, but as long as we are going to print out a
warning message recommending /driver, I needed to implement the option.
lld/test/COFF/driver-opt.s | ||
---|---|---|
21 | link.exe handles it as /driver:uponly and /drivedr:wdm, so I implemented the same behavior. |
What does link.exe do with /fixed /driver and /driver /fixed?