mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
33666d525d
Summary: See https://github.com/WebAssembly/tool-conventions/issues/54 Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D46069 llvm-svn: 330969
26 lines
671 B
YAML
26 lines
671 B
YAML
# RUN: yaml2obj < %s | not obj2yaml 2>&1 | FileCheck %s
|
|
|
|
--- !WASM
|
|
FileHeader:
|
|
Version: 0x00000001
|
|
Sections:
|
|
- Type: IMPORT
|
|
Imports:
|
|
- Module: fiz
|
|
Field: imported_global
|
|
Kind: GLOBAL
|
|
GlobalType: I32
|
|
GlobalMutable: false
|
|
- Type: CUSTOM
|
|
Name: linking
|
|
Version: 1
|
|
SymbolTable:
|
|
- Index: 0
|
|
Kind: GLOBAL
|
|
Name: imported_global
|
|
Flags: [ BINDING_WEAK, UNDEFINED ]
|
|
Global: 0
|
|
...
|
|
|
|
# CHECK: Error reading file: <stdin>: undefined weak global symbol
|