OSDN Git Service

[WebAssembly] Expose the offset of each data segment
authorSam Clegg <sbc@chromium.org>
Wed, 12 Jul 2017 00:24:54 +0000 (00:24 +0000)
committerSam Clegg <sbc@chromium.org>
Wed, 12 Jul 2017 00:24:54 +0000 (00:24 +0000)
commitc9c28d96fabddd60e100c93ea64f173cc3d4cfdd
treec576dcdbd3abe1364e15eb3faab156ba7bb8c8ff
parent4cdc8839345987817219acd53a5e6b902930821c
[WebAssembly] Expose the offset of each data segment

Summary:
This allows tools like lld that process relocations
to apply data relocation correctly. This information
is required because relocation are stored as section
offset.

Subscribers: jfb, dschuff, jgravelle-google, aheejin

Differential Revision: https://reviews.llvm.org/D35234

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307741 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/Wasm.h
include/llvm/Object/Wasm.h
include/llvm/ObjectYAML/WasmYAML.h
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
test/MC/WebAssembly/external-data.ll
test/MC/WebAssembly/unnamed-data.ll
test/ObjectYAML/wasm/data_section.yaml
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp