Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

70 lines
2.0 KiB
YAML

# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s
# That wasm exports of functions and globals are displayed as global data and
# code symbols.
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- ReturnType: I32
ParamTypes:
- I32
- Type: FUNCTION
FunctionTypes: [ 0, 0, 0, 0 ]
- Type: IMPORT
Imports:
- Module: env
Field: weak_import_func
Kind: FUNCTION
SigIndex: 0
- Module: env
Field: weak_import_data
Kind: GLOBAL
GlobalType: I32
GlobalMutable: false
- Type: GLOBAL
Globals:
- Type: I32
Mutable: false
InitExpr:
Opcode: I64_CONST
Value: 32
- Type: I32
Mutable: false
InitExpr:
Opcode: I32_CONST
Value: 64
- Type: I32
Mutable: false
InitExpr:
Opcode: I32_CONST
Value: 1024
- Type: EXPORT
Exports:
- Name: weak_global_func
Kind: FUNCTION
Index: 0x00000004
- Name: weak_global_data
Kind: GLOBAL
Index: 0x00000003
- Type: CUSTOM
Name: linking
DataSize: 0
SymbolInfo:
- Name: weak_global_func
Flags: [ BINDING_WEAK ]
- Name: weak_global_data
Flags: [ BINDING_WEAK ]
- Name: weak_import_func
Flags: [ BINDING_WEAK ]
- Name: weak_import_data
Flags: [ BINDING_WEAK ]
# CHECK: 00000400 W weak_global_data
# CHECK: 00000004 W weak_global_func
# CHECK: w weak_import_data
# CHECK: w weak_import_func