Skip to content

Commit 72842c2

Browse files
committed
fix test
1 parent 9e6664e commit 72842c2

File tree

7 files changed

+29
-19
lines changed

7 files changed

+29
-19
lines changed
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--- !COFF
2+
header:
3+
Machine: IMAGE_FILE_MACHINE_AMD64
4+
Characteristics: []
5+
sections:
6+
- Name: .text
7+
Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
8+
SectionData: B82A000000C3 # mov eax, 42; ret
9+
symbols:
10+
- Name: main
11+
Value: 0
12+
SectionNumber: 1
13+
SimpleType: IMAGE_SYM_TYPE_NULL
14+
ComplexType: IMAGE_SYM_DTYPE_FUNCTION
15+
StorageClass: IMAGE_SYM_CLASS_EXTERNAL

llvm/test/tools/llvm-readobj/COFF/cetcompat.test

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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+
RUN: yaml2obj %p/Inputs/hascetret42.yaml -o %t.obj
2+
RUN: lld-link /out:%t.exe /entry:main /cetcompat %t.obj
3+
RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
54

65
CHECK: DebugEntry {
76
CHECK: Characteristics: 0x0

llvm/test/tools/llvm-readobj/COFF/cetcompatstrict.test

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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+
RUN: yaml2obj %p/Inputs/hascetret42.yaml -o %t.obj
2+
RUN: lld-link /out:%t.exe /entry:main /cetcompatstrict %t.obj
3+
RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
54

65
CHECK: DebugEntry {
76
CHECK: Characteristics: 0x0

llvm/test/tools/llvm-readobj/COFF/cetdynamicapisinproc.test

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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+
RUN: yaml2obj %p/Inputs/hascetret42.yaml -o %t.obj
2+
RUN: lld-link /out:%t.exe /entry:main /cetdynamicapisinproc %t.obj
3+
RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
54

65
CHECK: DebugEntry {
76
CHECK: Characteristics: 0x0

llvm/test/tools/llvm-readobj/COFF/cetipvalidationrelaxed.test

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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+
RUN: yaml2obj %p/Inputs/hascetret42.yaml -o %t.obj
2+
RUN: lld-link /out:%t.exe /entry:main /cetipvalidationrelaxed %t.obj
3+
RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
54

65
CHECK: DebugEntry {
76
CHECK: Characteristics: 0x0

llvm/test/tools/llvm-readobj/COFF/hotpatchcompatible.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# To regenerate has-hotpatchcompatible.exe
2-
# $ echo int main() { return 0; } > has-hotpatchcompatible.c
3-
# $ cl has-hotpatchcompatible.c /link /hotpatchcompatible
1+
RUN: yaml2obj %p/Inputs/hascetret42.yaml -o %t.obj
2+
RUN: lld-link /out:%t.exe /entry:main /hotpatchcompatible %t.obj
43
RUN: llvm-readobj --coff-debug-directory %p/Inputs/has-hotpatchcompatible.exe | FileCheck %s
54

65
CHECK: DebugEntry {

0 commit comments

Comments
 (0)