2020-08-21 06:00:25 +08:00
|
|
|
# RUN: yaml2obj %s -o %t1.obj
|
|
|
|
# RUN: yaml2obj %s -o %t2.obj
|
2015-07-07 10:15:25 +08:00
|
|
|
# RUN: llvm-lib /out:%t.lib %t1.obj %t2.obj
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /lldmap:%t.map /entry:main /subsystem:console %p/Inputs/ret42.obj %t.lib
|
2015-07-07 10:15:25 +08:00
|
|
|
# RUN: FileCheck %s < %t.map
|
|
|
|
|
|
|
|
# CHECK-NOT: .lib
|
|
|
|
|
2016-06-28 04:17:08 +08:00
|
|
|
--- !COFF
|
2015-07-31 04:47:17 +08:00
|
|
|
header:
|
2015-07-07 10:15:25 +08:00
|
|
|
Machine: IMAGE_FILE_MACHINE_AMD64
|
|
|
|
Characteristics: [ ]
|
2015-07-31 04:47:17 +08:00
|
|
|
sections:
|
2015-07-07 10:15:25 +08:00
|
|
|
- Name: .bss
|
|
|
|
Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
|
|
|
|
Alignment: 4
|
|
|
|
SectionData: ''
|
2015-07-31 04:47:17 +08:00
|
|
|
symbols:
|
2015-07-07 10:15:25 +08:00
|
|
|
- Name: .bss
|
|
|
|
Value: 0
|
|
|
|
SectionNumber: 1
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_STATIC
|
2015-07-31 04:47:17 +08:00
|
|
|
SectionDefinition:
|
2015-07-07 10:15:25 +08:00
|
|
|
Length: 4
|
|
|
|
NumberOfRelocations: 0
|
|
|
|
NumberOfLinenumbers: 0
|
|
|
|
CheckSum: 0
|
|
|
|
Number: 1
|
|
|
|
Selection: IMAGE_COMDAT_SELECT_ANY
|
|
|
|
- Name: x
|
|
|
|
Value: 0
|
|
|
|
SectionNumber: 1
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
|
|
|
...
|