brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 47178e8 Raw
45 lines · yaml
1# RUN: yaml2obj %s -o %t.obj2# RUN: not lld-link /out:%t.exe /entry:main /includeoptional:undeffunc %t.obj /verbose 2>&1 | FileCheck %s3 4# CHECK: error: undefined symbol: undeffunc5 6--- !COFF7header:8  Machine:         IMAGE_FILE_MACHINE_AMD649  Characteristics: []10sections:11  - Name:            .text12    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]13    Alignment:       414    SectionData:     B800000000506800000000680000000050E80000000050E80000000015    Relocations:16      - VirtualAddress:  1717        SymbolName:      undeffunc18        Type:            IMAGE_REL_AMD64_REL3219symbols:20  - Name:            .text21    Value:           022    SectionNumber:   123    SimpleType:      IMAGE_SYM_TYPE_NULL24    ComplexType:     IMAGE_SYM_DTYPE_NULL25    StorageClass:    IMAGE_SYM_CLASS_STATIC26    SectionDefinition:27      Length:          2828      NumberOfRelocations: 129      NumberOfLinenumbers: 030      CheckSum:        031      Number:          032  - Name:            main33    Value:           034    SectionNumber:   135    SimpleType:      IMAGE_SYM_TYPE_NULL36    ComplexType:     IMAGE_SYM_DTYPE_NULL37    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL38  - Name:            undeffunc39    Value:           040    SectionNumber:   041    SimpleType:      IMAGE_SYM_TYPE_NULL42    ComplexType:     IMAGE_SYM_DTYPE_NULL43    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL44...45