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
48 - Type: R_WASM_FUNCTION_INDEX_LEB
51 - Type: R_WASM_FUNCTION_INDEX_LEB
54 - Type: R_WASM_FUNCTION_INDEX_LEB
60 Body: 10808080800010818080800010828080800041000B
68 Flags: [ VISIBILITY_HIDDEN ]
78 Flags: [ UNDEFINED, EXPLICIT_NAME ]
83 Flags: [ UNDEFINED, EXPLICIT_NAME ]
89 Version: '9.0.0 (trunk 359436)'
93 # CHECK-NEXT: Arch: wasm32
94 # CHECK-NEXT: AddressSize: 32bit
95 # CHECK-NEXT: Symbols [
96 # CHECK-NEXT: Symbol {
97 # CHECK-NEXT: Name: test
98 # CHECK-NEXT: Type: FUNCTION (0x0)
99 # CHECK-NEXT: Flags [ (0x4)
100 # CHECK-NEXT: VISIBILITY_HIDDEN (0x4)
102 # CHECK-NEXT: ElementIndex: 0x3
104 # CHECK-NEXT: Symbol {
105 # CHECK-NEXT: Name: foo
106 # CHECK-NEXT: Type: FUNCTION (0x0)
107 # CHECK-NEXT: Flags [ (0x10)
108 # CHECK-NEXT: UNDEFINED (0x10)
110 # CHECK-NEXT: ImportName: foo
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