llvm.org GIT mirror llvm / f0e7ccc
llvm-readobj: Don't print the Characteristics field as the Subsystem We claimed that we were printing the Subystem field when we were actually printing the Characteristics field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222216 91177308-0d34-0410-b5e6-96231b3b80d8 David Majnemer 5 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
250250 PE32-NEXT: SizeOfImage: 16384
251251 PE32-NEXT: SizeOfHeaders: 1024
252252 PE32-NEXT: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)
253 PE32-NEXT: Subsystem [ (0x8140)
253 PE32-NEXT: Characteristics [ (0x8140)
254254 PE32-NEXT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40)
255255 PE32-NEXT: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT (0x100)
256256 PE32-NEXT: IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE (0x8000)
3434 CHECK: SizeOfImage: 8192
3535 CHECK: SizeOfHeaders: 512
3636 CHECK: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)
37 CHECK: Subsystem [ (0x8160)
37 CHECK: Characteristics [ (0x8160)
3838 CHECK: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40)
3939 CHECK: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA (0x20)
4040 CHECK: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT (0x100)
436436 W.printNumber("SizeOfImage", Hdr->SizeOfImage);
437437 W.printNumber("SizeOfHeaders", Hdr->SizeOfHeaders);
438438 W.printEnum ("Subsystem", Hdr->Subsystem, makeArrayRef(PEWindowsSubsystem));
439 W.printFlags ("Subsystem", Hdr->DLLCharacteristics,
439 W.printFlags ("Characteristics", Hdr->DLLCharacteristics,
440440 makeArrayRef(PEDLLCharacteristics));
441441 W.printNumber("SizeOfStackReserve", Hdr->SizeOfStackReserve);
442442 W.printNumber("SizeOfStackCommit", Hdr->SizeOfStackCommit);