[readelf] Sanity check.
This commit is contained in:
parent
386b28e6fc
commit
09a8fb68bc
@ -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? */
|
||||
|
Loading…
Reference in New Issue
Block a user