llvm.org GIT mirror llvm / baa58b6
COFF: Add a missing enum value for high entropy ASLR. That bit is not documented in the PE/COFF spec published by Microsoft, so we don't know the official name of it. I named this bit IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VIRTUAL_ADDRESS because the bit is reported as "high entropy virtual address" by dumpbin.exe, git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200121 91177308-0d34-0410-b5e6-96231b3b80d8 Rui Ueyama 5 years ago
3 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
530530 };
531531
532532 enum DLLCharacteristics {
533 /// ASLR with 64 bit address space.
534 IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VIRTUAL_ADDRESS = 0x0020,
533535 /// DLL can be relocated at load time.
534536 IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE = 0x0040,
535537 /// Code integrity checks are enforced.
3636 CHECK: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)
3737 CHECK: Subsystem [ (0x8160)
3838 CHECK: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40)
39 CHECK: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VIRTUAL_ADDRESS (0x20)
3940 CHECK: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT (0x100)
4041 CHECK: IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE (0x8000)
4142 CHECK: ]
280280 };
281281
282282 static const EnumEntry PEDLLCharacteristics[] = {
283 LLVM_READOBJ_ENUM_ENT(COFF,
284 IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VIRTUAL_ADDRESS),
283285 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE ),
284286 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY ),
285287 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT ),