This format is based on sub-sections (like the "linking" and "name" sections) and is therefore easier to extend going forward. spec change: https://github.com/WebAssembly/tool-conventions/pull/170 binaryen change: https://github.com/WebAssembly/binaryen/pull/4141 wabt change: https://github.com/WebAssembly/wabt/pull/1707 emscripten change: https://github.com/emscripten-core/emscripten/pull/15019 Differential Revision: https://reviews.llvm.org/D109595
29 lines
693 B
YAML
29 lines
693 B
YAML
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
|
|
--- !WASM
|
|
FileHeader:
|
|
Version: 0x00000001
|
|
|
|
Sections:
|
|
- Type: CUSTOM
|
|
Name: dylink.0
|
|
MemorySize: 4
|
|
MemoryAlignment: 2
|
|
TableSize: 1
|
|
TableAlignment: 0
|
|
Needed: [ libfoo.so, libbar.so ]
|
|
...
|
|
# CHECK: --- !WASM
|
|
# CHECK: FileHeader:
|
|
# CHECK: Version: 0x1
|
|
# CHECK: Sections:
|
|
# CHECK: - Type: CUSTOM
|
|
# CHECK: Name: dylink.0
|
|
# CHECK: MemorySize: 4
|
|
# CHECK: MemoryAlignment: 2
|
|
# CHECK: TableSize: 1
|
|
# CHECK: TableAlignment: 0
|
|
# CHECK: Needed:
|
|
# CHECK: - libfoo.so
|
|
# CHECK: - libbar.so
|
|
# CHECK: ...
|