brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.8 KiB · 676da26 Raw
119 lines · yaml
1## Check that we print the external symbols "func1" and "func2", even though2## the pdata relocations point at the '.text' symbol.3 4# RUN: yaml2obj %s -o %t.obj5# RUN: llvm-readobj --unwind %t.obj | FileCheck %s6 7# CHECK: StartAddress: func18# CHECK: EndAddress: func1 +0x149# CHECK: UnwindInfoAddress: .xdata10 11# CHECK: StartAddress: func212# CHECK: EndAddress: func2 +0x1613# CHECK: UnwindInfoAddress: .xdata +0x814 15--- !COFF16header:17  Machine:         IMAGE_FILE_MACHINE_AMD6418  Characteristics: [ IMAGE_FILE_LINE_NUMS_STRIPPED ]19sections:20  - Name:            .text21    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]22    Alignment:       1623    SectionData:     4883EC38488D54242CE800000000904883C438C366662E0F1F840000000000904883EC3831C9488D54242CE800000000904883C438C324    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:     '01040100046200000104010004620000'35  - Name:            .pdata36    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]37    Alignment:       438    SectionData:     '000000001400000000000000200000003600000008000000'39    Relocations:40      - VirtualAddress:  041        SymbolName:      .text42        Type:            IMAGE_REL_AMD64_ADDR32NB43      - VirtualAddress:  444        SymbolName:      .text45        Type:            IMAGE_REL_AMD64_ADDR32NB46      - VirtualAddress:  847        SymbolName:      .xdata48        Type:            IMAGE_REL_AMD64_ADDR32NB49      - VirtualAddress:  1250        SymbolName:      .text51        Type:            IMAGE_REL_AMD64_ADDR32NB52      - VirtualAddress:  1653        SymbolName:      .text54        Type:            IMAGE_REL_AMD64_ADDR32NB55      - VirtualAddress:  2056        SymbolName:      .xdata57        Type:            IMAGE_REL_AMD64_ADDR32NB58symbols:59  - Name:            func160    Value:           061    SectionNumber:   162    SimpleType:      IMAGE_SYM_TYPE_NULL63    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION64    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL65    FunctionDefinition:66      TagIndex:        067      TotalSize:       068      PointerToLinenumber: 069      PointerToNextFunction: 070  - Name:            func271    Value:           3272    SectionNumber:   173    SimpleType:      IMAGE_SYM_TYPE_NULL74    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION75    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL76  - Name:            .text77    Value:           078    SectionNumber:   179    SimpleType:      IMAGE_SYM_TYPE_NULL80    ComplexType:     IMAGE_SYM_DTYPE_NULL81    StorageClass:    IMAGE_SYM_CLASS_STATIC82    SectionDefinition:83      Length:          5484      NumberOfRelocations: 285      NumberOfLinenumbers: 086      CheckSum:        087      Number:          088  - Name:            .xdata89    Value:           090    SectionNumber:   291    SimpleType:      IMAGE_SYM_TYPE_NULL92    ComplexType:     IMAGE_SYM_DTYPE_NULL93    StorageClass:    IMAGE_SYM_CLASS_STATIC94    SectionDefinition:95      Length:          1696      NumberOfRelocations: 097      NumberOfLinenumbers: 098      CheckSum:        099      Number:          0100  - Name:            .pdata101    Value:           0102    SectionNumber:   3103    SimpleType:      IMAGE_SYM_TYPE_NULL104    ComplexType:     IMAGE_SYM_DTYPE_NULL105    StorageClass:    IMAGE_SYM_CLASS_STATIC106    SectionDefinition:107      Length:          24108      NumberOfRelocations: 6109      NumberOfLinenumbers: 0110      CheckSum:        0111      Number:          0112  - Name:            other113    Value:           0114    SectionNumber:   0115    SimpleType:      IMAGE_SYM_TYPE_NULL116    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION117    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL118...119