Skip to content

Commit bbf3dd2

Browse files
authored
Update InputFiles.h
1 parent 64622b9 commit bbf3dd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/COFF/InputFiles.h

+3
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ class ObjFile : public InputFile {
172172
// like stack guard, safeseh, /guard:cf, or other things.
173173
uint32_t feat00Flags = 0;
174174

175+
// True if this object file is compiled with /kernel
176+
bool doesKernelDriver() { return feat00Flags & 0x40000000; }
177+
175178
// True if this object file is compatible with SEH. COFF-specific and
176179
// x86-only. COFF spec 5.10.1. The .sxdata section.
177180
bool hasSafeSEH() { return feat00Flags & 0x1; }

0 commit comments

Comments
 (0)