• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2# RUN: yaml2obj %s -o %t.obj
3# RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external2.ll
4# RUN: lld-link /out:%t.exe /entry:g /subsystem:console %t.obj %t.lto.obj
5
6--- !COFF
7header:
8  Machine:         IMAGE_FILE_MACHINE_AMD64
9  Characteristics: [  ]
10sections:
11  - Name:            '.text'
12    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
13    Alignment:       16
14    SectionData:     00
15symbols:
16  - Name:            'f'
17    Value:           0
18    SectionNumber:   0
19    SimpleType:      IMAGE_SYM_TYPE_NULL
20    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
21    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
22  - Name:            'g'
23    Value:           0
24    SectionNumber:   0
25    SimpleType:      IMAGE_SYM_TYPE_NULL
26    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
27    StorageClass:    IMAGE_SYM_CLASS_WEAK_EXTERNAL
28    WeakExternal:
29      TagIndex:        0
30      Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY
31...
32