diff options
author | Brian Carlstrom <bdc@google.com> | 2013-08-14 01:04:19 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-08-14 15:47:46 -0700 |
commit | 0e79b9196254cdd210a59cc00d07b88a796a3a0d (patch) | |
tree | 546296c2741d8a056d9033323049c66ba3b626a9 /linker | |
parent | c933493ac28c40558f369d175da738ba601d8499 (diff) | |
download | bionic-0e79b9196254cdd210a59cc00d07b88a796a3a0d.zip bionic-0e79b9196254cdd210a59cc00d07b88a796a3a0d.tar.gz bionic-0e79b9196254cdd210a59cc00d07b88a796a3a0d.tar.bz2 |
Add more information to error due to truncated Elf32_Ehdr
Change-Id: I24f30bd0c1120bcf85d77f5c4e69f0fefe9a2478
Diffstat (limited to 'linker')
-rw-r--r-- | linker/linker_phdr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linker/linker_phdr.cpp b/linker/linker_phdr.cpp index 83f163c..0940305 100644 --- a/linker/linker_phdr.cpp +++ b/linker/linker_phdr.cpp @@ -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; |