• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t1.obj
2# RUN: yaml2obj %s -o %t2.obj
3# RUN: llvm-lib /out:%t.lib %t1.obj %t2.obj
4# RUN: lld-link /out:%t.exe /lldmap:%t.map /entry:main /subsystem:console %p/Inputs/ret42.obj %t.lib
5# RUN: FileCheck %s < %t.map
6
7# CHECK-NOT: .lib
8
9--- !COFF
10header:
11  Machine:         IMAGE_FILE_MACHINE_AMD64
12  Characteristics: [  ]
13sections:
14  - Name:            .bss
15    Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
16    Alignment:       4
17    SectionData:     ''
18symbols:
19  - Name:            .bss
20    Value:           0
21    SectionNumber:   1
22    SimpleType:      IMAGE_SYM_TYPE_NULL
23    ComplexType:     IMAGE_SYM_DTYPE_NULL
24    StorageClass:    IMAGE_SYM_CLASS_STATIC
25    SectionDefinition:
26      Length:          4
27      NumberOfRelocations: 0
28      NumberOfLinenumbers: 0
29      CheckSum:        0
30      Number:          1
31      Selection:       IMAGE_COMDAT_SELECT_ANY
32  - Name:            x
33    Value:           0
34    SectionNumber:   1
35    SimpleType:      IMAGE_SYM_TYPE_NULL
36    ComplexType:     IMAGE_SYM_DTYPE_NULL
37    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
38...
39