. harmless errors in the case of shell scripts
Change-Id: I461776024a21233e291102ca6d05dc7fa767f71a
{
*hdr = (Elf_Ehdr *) exec_hdr;
if(!elf_sane(*hdr)) {
- printf("elf_unpack: elf_sane failed\n");
return ENOEXEC;
}
*phdr = (Elf_Phdr *)(exec_hdr + (*hdr)->e_phoff);
if(!elf_ph_sane(*phdr)) {
- printf("elf_unpack: elf_ph_sane failed\n");
return ENOEXEC;
}
#if 0
assert(execi->hdr != NULL);
if((e=elf_unpack(execi->hdr, execi->hdr_len, &hdr, &phdr)) != OK) {
- printf("libexec_load_elf: elf_unpack failed\n");
return e;
}