1 # RUN: yaml2obj %s | llvm-readobj --symbols | FileCheck %s
3 # Test symbols with custom import module and name attributes.
20 Field: __linear_memory
25 Field: __indirect_function_table
47 - Type: R_WASM_FUNCTION_INDEX_LEB
50 - Type: R_WASM_FUNCTION_INDEX_LEB
53 - Type: R_WASM_FUNCTION_INDEX_LEB
59 Body: 10808080800010818080800010828080800041000B
67 Flags: [ VISIBILITY_HIDDEN ]
77 Flags: [ UNDEFINED, EXPLICIT_NAME ]
82 Flags: [ UNDEFINED, EXPLICIT_NAME ]
88 Version: '9.0.0 (trunk 359436)'
92 # CHECK-NEXT: Arch: wasm32
93 # CHECK-NEXT: AddressSize: 32bit
94 # CHECK-NEXT: Symbols [
95 # CHECK-NEXT: Symbol {
96 # CHECK-NEXT: Name: test
97 # CHECK-NEXT: Type: FUNCTION (0x0)
98 # CHECK-NEXT: Flags [ (0x4)
99 # CHECK-NEXT: VISIBILITY_HIDDEN (0x4)
101 # CHECK-NEXT: ElementIndex: 0x3
103 # CHECK-NEXT: Symbol {
104 # CHECK-NEXT: Name: foo
105 # CHECK-NEXT: Type: FUNCTION (0x0)
106 # CHECK-NEXT: Flags [ (0x10)
107 # CHECK-NEXT: UNDEFINED (0x10)
109 # CHECK-NEXT: ImportName: foo
110 # CHECK-NEXT: ImportModule: red
111 # CHECK-NEXT: ElementIndex: 0x0
113 # CHECK-NEXT: Symbol {
114 # CHECK-NEXT: Name: bar
115 # CHECK-NEXT: Type: FUNCTION (0x0)
116 # CHECK-NEXT: Flags [ (0x50)
117 # CHECK-NEXT: EXPLICIT_NAME (0x40)
118 # CHECK-NEXT: UNDEFINED (0x10)
120 # CHECK-NEXT: ImportName: green
121 # CHECK-NEXT: ImportModule: env
122 # CHECK-NEXT: ElementIndex: 0x1
124 # CHECK-NEXT: Symbol {
125 # CHECK-NEXT: Name: qux
126 # CHECK-NEXT: Type: FUNCTION (0x0)
127 # CHECK-NEXT: Flags [ (0x50)
128 # CHECK-NEXT: EXPLICIT_NAME (0x40)
129 # CHECK-NEXT: UNDEFINED (0x10)
131 # CHECK-NEXT: ImportName: purple
132 # CHECK-NEXT: ImportModule: blue
133 # CHECK-NEXT: ElementIndex: 0x2