diff options
author | Sam Clegg <sbc@chromium.org> | 2017-06-27 20:27:59 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-06-27 20:27:59 +0000 |
commit | 49ab5d599222f7dd82c73e09d5a420c7c640ac59 (patch) | |
tree | 8270e094f214eaa7fb722e8dd61a85b1b6bba433 /lib/ObjectYAML | |
parent | f4a2d1d749c9a9cc2c358028ae3aefe6f338339c (diff) |
[WebAssembly] Add data size and alignement to linking section
The overal size of the data section (including BSS)
is otherwise not included in the wasm binary.
Differential Revision: https://reviews.llvm.org/D34657
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML')
-rw-r--r-- | lib/ObjectYAML/WasmYAML.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ObjectYAML/WasmYAML.cpp b/lib/ObjectYAML/WasmYAML.cpp index 65703c6cf68..11999559d65 100644 --- a/lib/ObjectYAML/WasmYAML.cpp +++ b/lib/ObjectYAML/WasmYAML.cpp @@ -56,6 +56,8 @@ static void sectionMapping(IO &IO, WasmYAML::NameSection &Section) { static void sectionMapping(IO &IO, WasmYAML::LinkingSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Name", Section.Name); + IO.mapRequired("DataSize", Section.DataSize); + IO.mapRequired("DataAlignment", Section.DataAlignment); IO.mapRequired("SymbolInfo", Section.SymbolInfos); } |