diff options
author | Vladimir Marko <vmarko@google.com> | 2015-02-25 12:02:49 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2015-03-02 18:07:03 +0000 |
commit | 5c42c29b89286e5efa4a4613132b09051ce5945b (patch) | |
tree | 5db25a4f62c5583f2f6fc42b9a2ff47362eeed5c /oatdump | |
parent | 242026e246a8b9efe098a0cce008fd525e011e5b (diff) | |
download | art-5c42c29b89286e5efa4a4613132b09051ce5945b.zip art-5c42c29b89286e5efa4a4613132b09051ce5945b.tar.gz art-5c42c29b89286e5efa4a4613132b09051ce5945b.tar.bz2 |
Add support for .bss section in oat files.
Change-Id: I779b80b8139d9afdc28373f8c68edff5df7726ce
Diffstat (limited to 'oatdump')
-rw-r--r-- | oatdump/oatdump.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index 3ce86d8..aab4f8b 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -88,6 +88,7 @@ class OatSymbolizer FINAL : public CodeOutput { uint32_t diff = static_cast<uint32_t>(oat_file_->End() - oat_file_->Begin()); uint32_t oat_exec_size = diff - oat_data_size; + uint32_t oat_bss_size = oat_file_->BssSize(); elf_output_ = OS::CreateEmptyFile(output_name_.c_str()); @@ -100,6 +101,8 @@ class OatSymbolizer FINAL : public CodeOutput { oat_data_size, oat_data_size, oat_exec_size, + RoundUp(oat_data_size + oat_exec_size, kPageSize), + oat_bss_size, true, false)); |