[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / llvm / test / ObjectYAML / wasm / data_section.yaml
blob2289e8a728570f381cd1ced4c647f8f18eaa58fa
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
2 --- !WASM
3 FileHeader:
4   Version:         0x00000001
5 Sections:
6   - Type:            MEMORY
7     Memories:
8       - Minimum:         0x00000003
9   - Type:            DATA
10     Segments:
11       - InitFlags:        0
12         Offset:
13           Opcode:          I32_CONST
14           Value:           4
15         Content:         '10001000'
16       - InitFlags:       1
17         Content:         '01010101'
18       - InitFlags:       2
19         MemoryIndex:     0
20         Offset:
21           Opcode:        I32_CONST
22           Value:         8
23         Content:         '00110011'
24     Relocations:
25       - Type:            R_WASM_MEMORY_ADDR_I32
26         Index:           0
27         Offset:          0x00000006
28         Addend:          8
29       - Type:            R_WASM_MEMORY_ADDR_I32
30         Index:           0
31         Offset:          0x00000006
32         Addend:          -6
33   - Type:            CUSTOM
34     Name:            linking
35     Version:         2
36     SymbolTable:
37       - Index:           0
38         Kind:            DATA
39         Name:            dataSymbol
40         Flags:           [  ]
41         Segment:         0
42         Offset:          0
43         Size:            4
44 ...
45 # CHECK: --- !WASM
46 # CHECK: FileHeader:
47 # CHECK:   Version:           0x1
48 # CHECK: Sections:
49 # CHECK:   - Type:            DATA
50 # CHECK-NEXT:     Relocations:
51 # CHECK-NEXT:      - Type:            R_WASM_MEMORY_ADDR_I32
52 # CHECK-NEXT:        Index:           0
53 # CHECK-NEXT:        Offset:          0x6
54 # CHECK-NEXT:        Addend:          8
55 # CHECK-NEXT:      - Type:            R_WASM_MEMORY_ADDR_I32
56 # CHECK-NEXT:        Index:           0
57 # CHECK-NEXT:        Offset:          0x6
58 # CHECK-NEXT:        Addend:          -6
59 # CHECK-NEXT:     Segments:
60 # CHECK-NEXT:       - SectionOffset:  6
61 # CHECK-NEXT:         InitFlags:      0
62 # CHECK-NEXT:         Offset:
63 # CHECK-NEXT:           Opcode:         I32_CONST
64 # CHECK-NEXT:           Value:          4
65 # CHECK-NEXT:         Content:        '10001000'
66 # CHECK-NEXT:       - SectionOffset:  12
67 # CHECK-NEXT:         InitFlags:      1
68 # CHECK-NEXT:         Content:        '01010101'
69 # CHECK-NEXT:       - SectionOffset:  22
70 # CHECK-NEXT:         InitFlags:      2
71 # CHECK-NEXT:         MemoryIndex:    0
72 # CHECK-NEXT:         Offset:
73 # CHECK-NEXT:           Opcode:         I32_CONST
74 # CHECK-NEXT:           Value:          8
75 # CHECK-NEXT:         Content:        '00110011'
76 # CHECK-NEXT:   - Type:            CUSTOM