brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 147175f Raw
97 lines · yaml
1# RUN: yaml2obj %s -o %t.wasm2# RUN: llvm-objdump -t %t.wasm | FileCheck %s3#4# CHECK:      SYMBOL TABLE:5# CHECK-NEXT: 00000000   F *UND* 00000000 my_func_import_name6# CHECK-NEXT: 0000008c g F CODE 00000003 my_func_export_name7# CHECK-NEXT: 0000008f l F CODE 00000003 my_func_local_name8# CHECK-NEXT: 00000000    *UND* 00000000 my_global_import_name9# CHECK-NEXT: 0000004c g  GLOBAL 00000005 my_global_export_name10# CHECK-NEXT: 00000051 g  GLOBAL 00000009 my_global_local_name11# CHECK-NEXT: 00000000 l O DATA 00000004 my_datasegment_name12 13--- !WASM14FileHeader:15  Version:         0x116Sections:17  - Type:            TYPE18    Signatures:19      - Index:           020        ParamTypes:      []21        ReturnTypes:     []22  - Type:            IMPORT23    Imports:24      - Module:          env25        Field:           foo26        Kind:            FUNCTION27        SigIndex:        028      - Module:          env29        Field:           bar30        Kind:            GLOBAL31        GlobalType:      I3232        GlobalMutable:   true33      - Module:          env34        Field:           memory35        Kind:            MEMORY36        Memory:37          Minimum:         0x138  - Type:            FUNCTION39    FunctionTypes:   [ 0, 0 ]40  - Type:            GLOBAL41    Globals:42      - Index:           143        Mutable:         false44        Type:            I3245        InitExpr:46          Opcode:          I32_CONST47          Value:           4248      - Index:           249        Mutable:         true50        Type:            I6451        InitExpr:52          Opcode:          I64_CONST53          Value:           500000000054  - Type:            EXPORT55    Exports:56      - Name:            my_func_export57        Kind:            FUNCTION58        Index:           159      - Name:            my_global_export60        Kind:            GLOBAL61        Index:           162  - Type:            CODE63    Functions:64      - Index:           165        Locals:66        Body:            0067      - Index:           268        Locals:69        Body:            0070  - Type:            DATA71    Segments:72      - SectionOffset:   073        InitFlags:       074        Offset:75          Opcode:          I32_CONST76          Value:           077        Content:         'abcd1234'78  - Type:            CUSTOM79    Name:            name80    FunctionNames:81     - Index:        082       Name:         my_func_import_name83     - Index:        184       Name:         my_func_export_name85     - Index:        286       Name:         my_func_local_name87    GlobalNames:88     - Index:        089       Name:         my_global_import_name90     - Index:        191       Name:         my_global_export_name92     - Index:        293       Name:         my_global_local_name94    DataSegmentNames:95     - Index:        096       Name:         my_datasegment_name97