[readelf] Sanity check.

This commit is contained in:
Kevin Lange 2011-04-08 12:25:51 -05:00
parent 386b28e6fc
commit 09a8fb68bc
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ int main(int argc, char ** argv) {
header->e_ident[2] != ELFMAG2 ||
header->e_ident[3] != ELFMAG3) {
printf("Header magic is wrong!\n");
printf("Are you sure this is a 32-bit ELF binary or object file?\n");
return 1;
}
/* Let's print out some of the header information, shall we? */