Merge "Add more information to error due to truncated Elf32_Ehdr"

This commit is contained in:
Brian Carlstrom 2013-08-14 22:51:47 +00:00 committed by Gerrit Code Review
commit c85e0dbb0b

View File

@ -147,7 +147,8 @@ bool ElfReader::ReadElfHeader() {
return false;
}
if (rc != sizeof(header_)) {
DL_ERR("\"%s\" is too small to be an ELF executable", name_);
DL_ERR("\"%s\" is too small to be an ELF executable. Expected at least %d bytes, only found %d bytes.",
name_, sizeof(header_), rc);
return false;
}
return true;