1 # RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s
3 # Test symbols with custom import module and name attributes.
21 Field: __linear_memory
26 Field: __indirect_function_table
49 - Type: R_WASM_FUNCTION_INDEX_LEB
52 - Type: R_WASM_FUNCTION_INDEX_LEB
55 - Type: R_WASM_FUNCTION_INDEX_LEB
61 Body: 10808080800010818080800010828080800041000B
69 Flags: [ VISIBILITY_HIDDEN ]
79 Flags: [ UNDEFINED, EXPLICIT_NAME ]
84 Flags: [ UNDEFINED, EXPLICIT_NAME ]
90 Version: '9.0.0 (trunk 359436)'
94 # CHECK-NEXT: Arch: wasm32
95 # CHECK-NEXT: AddressSize: 32bit
96 # CHECK-NEXT: Symbols [
97 # CHECK-NEXT: Symbol {
98 # CHECK-NEXT: Name: test
99 # CHECK-NEXT: Type: FUNCTION (0x0)
100 # CHECK-NEXT: Flags [ (0x4)
101 # CHECK-NEXT: VISIBILITY_HIDDEN (0x4)
103 # CHECK-NEXT: ElementIndex: 0x3
105 # CHECK-NEXT: Symbol {
106 # CHECK-NEXT: Name: foo
107 # CHECK-NEXT: Type: FUNCTION (0x0)
108 # CHECK-NEXT: Flags [ (0x10)
109 # CHECK-NEXT: UNDEFINED (0x10)
111 # CHECK-NEXT: ImportModule: red
112 # CHECK-NEXT: ElementIndex: 0x0
114 # CHECK-NEXT: Symbol {
115 # CHECK-NEXT: Name: bar
116 # CHECK-NEXT: Type: FUNCTION (0x0)
117 # CHECK-NEXT: Flags [ (0x50)
118 # CHECK-NEXT: EXPLICIT_NAME (0x40)
119 # CHECK-NEXT: UNDEFINED (0x10)
121 # CHECK-NEXT: ImportName: green
122 # CHECK-NEXT: ImportModule: env
123 # CHECK-NEXT: ElementIndex: 0x1
125 # CHECK-NEXT: Symbol {
126 # CHECK-NEXT: Name: qux
127 # CHECK-NEXT: Type: FUNCTION (0x0)
128 # CHECK-NEXT: Flags [ (0x50)
129 # CHECK-NEXT: EXPLICIT_NAME (0x40)
130 # CHECK-NEXT: UNDEFINED (0x10)
132 # CHECK-NEXT: ImportName: purple
133 # CHECK-NEXT: ImportModule: blue
134 # CHECK-NEXT: ElementIndex: 0x2