1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
3 # RUN: /verbose %t.obj > %t.log 2>&1
4 # RUN: FileCheck %s < %t.log
5 # RUN: llvm-objdump -s %t.exe | FileCheck --check-prefix=OBJDUMP %s
10 # OBJDUMP: Contents of section .text:
11 # OBJDUMP-NEXT: 140001000 00cccccc cccccccc cccccccc cccccccc
12 # OBJDUMP-NEXT: 140001010 4883ec28 e8000000 004883c4 28c3
16 Machine: IMAGE_FILE_MACHINE_AMD64
20 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
22 SectionData: 4883EC28E8000000004883C428C3
24 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
26 SectionData: 4883EC28E8000000004883C428C3
28 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
35 SimpleType: IMAGE_SYM_TYPE_NULL
36 ComplexType: IMAGE_SYM_DTYPE_NULL
37 StorageClass: IMAGE_SYM_CLASS_STATIC
40 NumberOfRelocations: 0
41 NumberOfLinenumbers: 0
44 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
48 SimpleType: IMAGE_SYM_TYPE_NULL
49 ComplexType: IMAGE_SYM_DTYPE_NULL
50 StorageClass: IMAGE_SYM_CLASS_STATIC
53 NumberOfRelocations: 0
54 NumberOfLinenumbers: 0
57 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
61 SimpleType: IMAGE_SYM_TYPE_NULL
62 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
63 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
67 SimpleType: IMAGE_SYM_TYPE_NULL
68 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
69 StorageClass: IMAGE_SYM_CLASS_EXTERNAL