elf64ldseg: do not pprint warnings on wrong header as it could simply be an rc script

This commit is contained in:
Giacomo Tesio 2017-08-21 23:59:40 +02:00
parent f7c3a41b11
commit 63b227be55
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ elf64ldseg(Chan *c, uintptr_t *entryp, Ldseg **rp, char *mach, uint32_t minpgsz)
}
if(c->dev->read(c, &ehdr, sizeof ehdr, 0) != sizeof ehdr){
pprint("elf64ldseg: too short for header\n");
// pprint("elf64ldseg: too short for header\n");
goto done; // too short to be elf but could be something else
}