summaryrefslogtreecommitdiff
path: root/compiler/image_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/image_test.cc')
-rw-r--r--compiler/image_test.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/image_test.cc b/compiler/image_test.cc
index 9e94b9d861..4689c9d300 100644
--- a/compiler/image_test.cc
+++ b/compiler/image_test.cc
@@ -263,10 +263,7 @@ void CompilationHelper::Compile(CompilerDriver* driver,
oat_writer->PrepareLayout(driver, writer.get(), cur_dex_files, &patcher);
size_t rodata_size = oat_writer->GetOatHeader().GetExecutableOffset();
size_t text_size = oat_writer->GetOatSize() - rodata_size;
- elf_writer->PrepareDynamicSection(rodata_size,
- text_size,
- oat_writer->GetBssSize(),
- oat_writer->GetBssRootsOffset());
+ elf_writer->SetLoadedSectionSizes(rodata_size, text_size, oat_writer->GetBssSize());
writer->UpdateOatFileLayout(i,
elf_writer->GetLoadedSize(),