summaryrefslogtreecommitdiff
path: root/lld/test/wasm/Inputs/undefined-globals.yaml
blob: 440a538d6587c3746dd4815e50a91c149b9740cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            TYPE
    Signatures:
      - Index:           0
        ReturnType:      I64
        ParamTypes:
  - Type:            IMPORT
    Imports:
      - Module:          env
        Field:           unused_undef_global
        Kind:            GLOBAL
        GlobalType:      I64
        GlobalMutable:   true
      - Module:          env
        Field:           used_undef_global
        Kind:            GLOBAL
        GlobalType:      I64
        GlobalMutable:   true
  - Type:            FUNCTION
    FunctionTypes:   [ 0 ]
  - Type:            CODE
    Functions:
      - Index:           0
        Locals:
        Body:            2381808080000B
    Relocations:
      - Type:            R_WEBASSEMBLY_GLOBAL_INDEX_LEB
        Index:           1
        Offset:          0x00000004
  - Type:            CUSTOM
    Name:            linking
    Version:         1
    SymbolTable:
      - Index:           0
        Kind:            GLOBAL
        Name:            unused_undef_global
        Flags:           [ VISIBILITY_HIDDEN, UNDEFINED ]
        Global:          0
      - Index:           1
        Kind:            GLOBAL
        Name:            used_undef_global
        Flags:           [ VISIBILITY_HIDDEN, UNDEFINED ]
        Global:          1
      - Index:           2
        Kind:            FUNCTION
        Name:            use_undef_global
        Flags:           [ VISIBILITY_HIDDEN ]
        Function:        0
...