[WebAssembly] Convert to new "dylink.0" section format
authorSam Clegg <sbc@chromium.org>
Fri, 10 Sep 2021 11:21:28 +0000 (07:21 -0400)
committerSam Clegg <sbc@chromium.org>
Sun, 12 Sep 2021 12:30:38 +0000 (05:30 -0700)
commitb78c85a44af300f8e3da582411814385cf70239d
tree31129e08f05a93a8abd14f799a71103e233487b5
parentd338e535ec5f1de8b1b6cf7ea74514dfe1ecd0ce
[WebAssembly] Convert to new "dylink.0" section format

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
14 files changed:
lld/test/wasm/pie.ll
lld/test/wasm/shared-needed.s
lld/test/wasm/shared.s
lld/test/wasm/shared64.s
lld/wasm/SyntheticSections.cpp
lld/wasm/SyntheticSections.h
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/include/llvm/Object/Wasm.h
llvm/include/llvm/ObjectYAML/WasmYAML.h
llvm/lib/Object/WasmObjectFile.cpp
llvm/lib/ObjectYAML/WasmEmitter.cpp
llvm/lib/ObjectYAML/WasmYAML.cpp
llvm/test/ObjectYAML/wasm/dylink_section.yaml
llvm/tools/obj2yaml/wasm2yaml.cpp