Fix typo in elf writer.
We were writing the wrong number of characters to the elf file.
Caught by valgrind.
Change-Id: Iaf5a51bc7f6dd23cc5e68992dc033610fd0c5c79
diff --git a/compiler/elf_writer_quick.cc b/compiler/elf_writer_quick.cc
index 014c51e..f07609e 100644
--- a/compiler/elf_writer_quick.cc
+++ b/compiler/elf_writer_quick.cc
@@ -595,7 +595,7 @@
<< " for " << elf_file_->GetPath();
return false;
}
- if (!elf_file_->WriteFully(&dynstr[0], dynsym_size)) {
+ if (!elf_file_->WriteFully(&dynstr[0], dynstr_size)) {
PLOG(ERROR) << "Failed to write .dynsym for " << elf_file_->GetPath();
return false;
}