Skip to content

Commit da5f522

Browse files
committed
squash has-*.exe into the one
1 parent 4c44c62 commit da5f522

11 files changed

+40
-30
lines changed
-10 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-10 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# To regenerate has-cet.exe
2-
# $ echo int main() { return 0; } > has-cet.c
3-
# $ cl has-cet.c /link /cetcompat
4-
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-cet.exe | FileCheck %s
1+
# To regenerate has-exdllcharacteristics.exe
2+
# $ echo int main() { return 0; } > has-exdllcharacteristics.c
3+
# To make minimum possible stub file (to decrease the binary size)
4+
# $ echo -n '4D5A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' | xxd -r -p > stub
5+
# $ cl has-exdllcharacteristics.c /entry:main /STUB:stub /NOCOFFGRPINFO /EMITTOOLVERSIONINFO:NO /EMITPOGOPHASEINFO /NOVCFEATURE /MANIFEST:NO /cetcompat /cetcompatstrict /cetdynamicapisinproc /cetipvalidationrelaxed /hotpatchcompatible /functionpadmin:6
6+
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-exdllcharacteristics.exe | FileCheck %s
57

68
CHECK: DebugEntry {
79
CHECK: Characteristics: 0x0
810
CHECK: Type: ExtendedDLLCharacteristics (0x14)
9-
CHECK: ExtendedCharacteristics [ (0x1)
11+
CHECK: ExtendedCharacteristics [ (0x8F)
1012
CHECK: IMAGE_DLL_CHARACTERISTICS_EX_CET_COMPAT (0x1)
1113
CHECK: ]
1214
CHECK: RawData (
13-
CHECK: 0000: 01000000 |....|
15+
CHECK: 0000: 8F000000 |....|
1416
CHECK: )
1517
CHECK: }
1618

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# To regenerate has-cetstrict.exe
2-
# $ echo int main() { return 0; } > has-cetstrict.c
3-
# $ cl has-cetstrict.c /link /cetcompatstrict
4-
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-cetstrict.exe | FileCheck %s
1+
# To regenerate has-exdllcharacteristics.exe
2+
# $ echo int main() { return 0; } > has-exdllcharacteristics.c
3+
# To make minimum possible stub file (to decrease the binary size)
4+
# $ echo -n '4D5A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' | xxd -r -p > stub
5+
# $ cl has-exdllcharacteristics.c /entry:main /STUB:stub /NOCOFFGRPINFO /EMITTOOLVERSIONINFO:NO /EMITPOGOPHASEINFO /NOVCFEATURE /MANIFEST:NO /cetcompat /cetcompatstrict /cetdynamicapisinproc /cetipvalidationrelaxed /hotpatchcompatible /functionpadmin:6
6+
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-exdllcharacteristics.exe | FileCheck %s
57

68
CHECK: DebugEntry {
79
CHECK: Characteristics: 0x0
810
CHECK: Type: ExtendedDLLCharacteristics (0x14)
9-
CHECK: ExtendedCharacteristics [ (0x2)
11+
CHECK: ExtendedCharacteristics [ (0x8F)
1012
CHECK: IMAGE_DLL_CHARACTERISTICS_EX_CET_COMPAT_STRICT_MODE (0x2)
1113
CHECK: ]
1214
CHECK: RawData (
13-
CHECK: 0000: 02000000 |....|
15+
CHECK: 0000: 8F000000 |....|
1416
CHECK: )
1517
CHECK: }
1618

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# To regenerate has-cetdynamicapisinproc.exe
2-
# $ echo int main() { return 0; } > has-cetdynamicapisinproc.c
3-
# $ cl has-cetdynamicapisinproc.c /link /cetdynamicapisinproc
4-
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-cetdynamicapisinproc.exe | FileCheck %s
1+
# To regenerate has-exdllcharacteristics.exe
2+
# $ echo int main() { return 0; } > has-exdllcharacteristics.c
3+
# To make minimum possible stub file (to decrease the binary size)
4+
# $ echo -n '4D5A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' | xxd -r -p > stub
5+
# $ cl has-exdllcharacteristics.c /entry:main /STUB:stub /NOCOFFGRPINFO /EMITTOOLVERSIONINFO:NO /EMITPOGOPHASEINFO /NOVCFEATURE /MANIFEST:NO /cetcompat /cetcompatstrict /cetdynamicapisinproc /cetipvalidationrelaxed /hotpatchcompatible /functionpadmin:6
6+
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-exdllcharacteristics.exe | FileCheck %s
57

68
CHECK: DebugEntry {
79
CHECK: Characteristics: 0x0
810
CHECK: Type: ExtendedDLLCharacteristics (0x14)
9-
CHECK: ExtendedCharacteristics [ (0x8)
11+
CHECK: ExtendedCharacteristics [ (0x8F)
1012
CHECK: IMAGE_DLL_CHARACTERISTICS_EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC_ONLY (0x8)
1113
CHECK: ]
1214
CHECK: RawData (
13-
CHECK: 0000: 08000000 |....|
15+
CHECK: 0000: 8F000000 |....|
1416
CHECK: )
1517
CHECK: }
1618

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# To regenerate has-cetipvalidationrelaxed.exe
2-
# $ echo int main() { return 0; } > has-cetipvalidationrelaxed.c
3-
# $ cl has-cetipvalidationrelaxed.c /link /cetipvalidationrelaxed
4-
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-cetipvalidationrelaxed.exe | FileCheck %s
1+
# To regenerate has-exdllcharacteristics.exe
2+
# $ echo int main() { return 0; } > has-exdllcharacteristics.c
3+
# To make minimum possible stub file (to decrease the binary size)
4+
# $ echo -n '4D5A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' | xxd -r -p > stub
5+
# $ cl has-exdllcharacteristics.c /entry:main /STUB:stub /NOCOFFGRPINFO /EMITTOOLVERSIONINFO:NO /EMITPOGOPHASEINFO /NOVCFEATURE /MANIFEST:NO /cetcompat /cetcompatstrict /cetdynamicapisinproc /cetipvalidationrelaxed /hotpatchcompatible /functionpadmin:6
6+
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-exdllcharacteristics.exe | FileCheck %s
57

68
CHECK: DebugEntry {
79
CHECK: Characteristics: 0x0
810
CHECK: Type: ExtendedDLLCharacteristics (0x14)
9-
CHECK: ExtendedCharacteristics [ (0x4)
11+
CHECK: ExtendedCharacteristics [ (0x8F)
1012
CHECK: IMAGE_DLL_CHARACTERISTICS_EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE (0x4)
1113
CHECK: ]
1214
CHECK: RawData (
13-
CHECK: 0000: 04000000 |....|
15+
CHECK: 0000: 8F000000 |....|
1416
CHECK: )
1517
CHECK: }
1618

0 commit comments

Comments
 (0)