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 | 9e1ade93a83635da90ff93586a1b9f503be8b8e8 (patch) | |
tree | 8a86cabda57202d4c2b23d83c210a54ad02fcec9 /llvm/lib/ObjectYAML | |
parent | 25173e4cbab59cb1256ca42c7133e6a973ce358a (diff) | |
download | bcm5719-llvm-9e1ade93a83635da90ff93586a1b9f503be8b8e8.tar.gz bcm5719-llvm-9e1ade93a83635da90ff93586a1b9f503be8b8e8.zip |
[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
llvm-svn: 306459
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r-- | llvm/lib/ObjectYAML/WasmYAML.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp index 65703c6cf68..11999559d65 100644 --- a/llvm/lib/ObjectYAML/WasmYAML.cpp +++ b/llvm/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); } |