[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / ObjectYAML / wasm / event_section.yaml
blob55e28d18985de649ee89d44189caabb52d027fc1
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
3 --- !WASM
4 FileHeader:
5   Version:         0x00000001
6 Sections:
7   - Type:            TYPE
8     Signatures:
9       - Index:           0
10         ParamTypes:
11           - I32
12         ReturnTypes:
13           - I32
14       - Index:           1
15         ParamTypes:
16           - I32
17         ReturnTypes:      []
18   - Type:            FUNCTION
19     FunctionTypes:   [ 0 ]
20   - Type:            TAG
21     TagTypes:        [ 1 ]
22   - Type:            CODE
23     Relocations:
24       - Type:            R_WASM_TAG_INDEX_LEB
25         Index:           1
26         Offset:          0x00000006
27       - Type:            10
28         Index:           1
29         Offset:          0x00000006
30     Functions:
31       - Index:           0
32         Locals:
33         Body:            200008808080800041000B
34   - Type:            CUSTOM
35     Name:            linking
36     Version:         2
37     SymbolTable:
38       - Index:           0
39         Kind:            FUNCTION
40         Name:            test_throw0
41         Flags:           [  ]
42         Function:        0
43       - Index:           1
44         Kind:            TAG
45         Name:            __cpp_exception
46         Flags:           [ BINDING_WEAK ]
47         Tag:             0
48 ...
50 # CHECK:      --- !WASM
51 # CHECK-NEXT: FileHeader:
52 # CHECK-NEXT:   Version:         0x1
53 # CHECK-NEXT: Sections:
54 # CHECK-NEXT:   - Type:            TYPE
55 # CHECK-NEXT:     Signatures:
56 # CHECK-NEXT:       - Index:           0
57 # CHECK-NEXT:         ParamTypes:
58 # CHECK-NEXT:           - I32
59 # CHECK-NEXT:         ReturnTypes:
60 # CHECK-NEXT:           - I32
61 # CHECK-NEXT:       - Index:           1
62 # CHECK-NEXT:         ParamTypes:
63 # CHECK-NEXT:           - I32
64 # CHECK-NEXT:         ReturnTypes:     []
65 # CHECK-NEXT:   - Type:            FUNCTION
66 # CHECK-NEXT:     FunctionTypes:   [ 0 ]
67 # CHECK-NEXT:   - Type:            TAG
68 # CHECK-NEXT:     TagTypes:        [ 1 ]
69 # CHECK-NEXT:   - Type:            CODE
70 # CHECK-NEXT:     Relocations:
71 # CHECK-NEXT:       - Type:            R_WASM_TAG_INDEX_LEB
72 # CHECK-NEXT:         Index:           1
73 # CHECK-NEXT:         Offset:          0x6
74 # CHECK-NEXT:       - Type:            R_WASM_TAG_INDEX_LEB
75 # CHECK-NEXT:         Index:           1
76 # CHECK-NEXT:         Offset:          0x6
77 # CHECK-NEXT:     Functions:
78 # CHECK-NEXT:       - Index:           0
79 # CHECK-NEXT:         Locals:
80 # CHECK-NEXT:         Body:            200008808080800041000B
81 # CHECK-NEXT:   - Type:            CUSTOM
82 # CHECK-NEXT:     Name:            linking
83 # CHECK-NEXT:     Version:         2
84 # CHECK-NEXT:     SymbolTable:
85 # CHECK-NEXT:       - Index:           0
86 # CHECK-NEXT:         Kind:            FUNCTION
87 # CHECK-NEXT:         Name:            test_throw0
88 # CHECK-NEXT:         Flags:           [  ]
89 # CHECK-NEXT:         Function:        0
90 # CHECK-NEXT:       - Index:           1
91 # CHECK-NEXT:         Kind:            TAG
92 # CHECK-NEXT:         Name:            __cpp_exception
93 # CHECK-NEXT:         Flags:           [ BINDING_WEAK ]
94 # CHECK-NEXT:         Tag:             0