brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.9 KiB · 45a0efc Raw
150 lines · yaml
1## Check that we print the external symbols "func1" and "func2", even though2## the pdata relocations point at the '$LN4' symbols.3 4# RUN: yaml2obj %s -o %t.obj5# RUN: llvm-readobj --unwind %t.obj | FileCheck %s6 7# CHECK: StartAddress: func18# CHECK: EndAddress: func1 +0x139# CHECK: UnwindInfoAddress: $unwind$func110 11# CHECK: StartAddress: func212# CHECK: EndAddress: func2 +0x1513# CHECK: UnwindInfoAddress: $unwind$func214 15--- !COFF16header:17  Machine:         IMAGE_FILE_MACHINE_AMD6418  Characteristics: [  ]19sections:20  - Name:            '.text$mn'21    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]22    Alignment:       1623    SectionData:     4883EC28488D542438E8000000004883C428C34883EC28488D54243033C9E8000000004883C428C324    Relocations:25      - VirtualAddress:  1026        SymbolName:      other27        Type:            IMAGE_REL_AMD64_REL3228      - VirtualAddress:  4429        SymbolName:      other30        Type:            IMAGE_REL_AMD64_REL3231  - Name:            .xdata32    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]33    Alignment:       434    SectionData:     '01040100044200000104010004420000'35  - Name:            .pdata36    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]37    Alignment:       438    SectionData:     '000000001300000000000000000000001500000000000000'39    Relocations:40      - VirtualAddress:  041        SymbolTableIndex: 542        Type:            IMAGE_REL_AMD64_ADDR32NB43      - VirtualAddress:  444        SymbolTableIndex: 545        Type:            IMAGE_REL_AMD64_ADDR32NB46      - VirtualAddress:  847        SymbolName:      '$unwind$func1'48        Type:            IMAGE_REL_AMD64_ADDR32NB49      - VirtualAddress:  1250        SymbolTableIndex: 651        Type:            IMAGE_REL_AMD64_ADDR32NB52      - VirtualAddress:  1653        SymbolTableIndex: 654        Type:            IMAGE_REL_AMD64_ADDR32NB55      - VirtualAddress:  2056        SymbolName:      '$unwind$func2'57        Type:            IMAGE_REL_AMD64_ADDR32NB58symbols:59  - Name:            '.text$mn'60    Value:           061    SectionNumber:   162    SimpleType:      IMAGE_SYM_TYPE_NULL63    ComplexType:     IMAGE_SYM_DTYPE_NULL64    StorageClass:    IMAGE_SYM_CLASS_STATIC65    SectionDefinition:66      Length:          5367      NumberOfRelocations: 268      NumberOfLinenumbers: 069      CheckSum:        97362281470      Number:          071  - Name:            other72    Value:           073    SectionNumber:   074    SimpleType:      IMAGE_SYM_TYPE_NULL75    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION76    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL77  - Name:            func178    Value:           079    SectionNumber:   180    SimpleType:      IMAGE_SYM_TYPE_NULL81    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION82    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL83  - Name:            func284    Value:           1985    SectionNumber:   186    SimpleType:      IMAGE_SYM_TYPE_NULL87    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION88    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL89  - Name:            '$LN4'90    Value:           091    SectionNumber:   192    SimpleType:      IMAGE_SYM_TYPE_NULL93    ComplexType:     IMAGE_SYM_DTYPE_NULL94    StorageClass:    IMAGE_SYM_CLASS_LABEL95  - Name:            '$LN4'96    Value:           1997    SectionNumber:   198    SimpleType:      IMAGE_SYM_TYPE_NULL99    ComplexType:     IMAGE_SYM_DTYPE_NULL100    StorageClass:    IMAGE_SYM_CLASS_LABEL101  - Name:            .xdata102    Value:           0103    SectionNumber:   2104    SimpleType:      IMAGE_SYM_TYPE_NULL105    ComplexType:     IMAGE_SYM_DTYPE_NULL106    StorageClass:    IMAGE_SYM_CLASS_STATIC107    SectionDefinition:108      Length:          16109      NumberOfRelocations: 0110      NumberOfLinenumbers: 0111      CheckSum:        1006417668112      Number:          0113  - Name:            '$unwind$func1'114    Value:           0115    SectionNumber:   2116    SimpleType:      IMAGE_SYM_TYPE_NULL117    ComplexType:     IMAGE_SYM_DTYPE_NULL118    StorageClass:    IMAGE_SYM_CLASS_STATIC119  - Name:            .pdata120    Value:           0121    SectionNumber:   3122    SimpleType:      IMAGE_SYM_TYPE_NULL123    ComplexType:     IMAGE_SYM_DTYPE_NULL124    StorageClass:    IMAGE_SYM_CLASS_STATIC125    SectionDefinition:126      Length:          24127      NumberOfRelocations: 6128      NumberOfLinenumbers: 0129      CheckSum:        2067061152130      Number:          0131  - Name:            '$pdata$func1'132    Value:           0133    SectionNumber:   3134    SimpleType:      IMAGE_SYM_TYPE_NULL135    ComplexType:     IMAGE_SYM_DTYPE_NULL136    StorageClass:    IMAGE_SYM_CLASS_STATIC137  - Name:            '$unwind$func2'138    Value:           8139    SectionNumber:   2140    SimpleType:      IMAGE_SYM_TYPE_NULL141    ComplexType:     IMAGE_SYM_DTYPE_NULL142    StorageClass:    IMAGE_SYM_CLASS_STATIC143  - Name:            '$pdata$func2'144    Value:           12145    SectionNumber:   3146    SimpleType:      IMAGE_SYM_TYPE_NULL147    ComplexType:     IMAGE_SYM_DTYPE_NULL148    StorageClass:    IMAGE_SYM_CLASS_STATIC149...150