2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external.ll
4 # RUN: lld-link /out:%t1.exe /entry:g /subsystem:console %t.obj
5 # RUN: lld-link /out:%t2.exe /entry:g /subsystem:console /lldmap:%t2.map %t.obj %t.lto.obj
6 # RUN: FileCheck %s < %t2.map
9 # CHECK-NEXT: .lto.obj:
14 Machine: IMAGE_FILE_MACHINE_AMD64
18 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
25 SimpleType: IMAGE_SYM_TYPE_NULL
26 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
27 StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL
30 Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY
34 SimpleType: IMAGE_SYM_TYPE_NULL
35 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
36 StorageClass: IMAGE_SYM_CLASS_EXTERNAL