libexec: quiet
. harmless errors in the case of shell scripts Change-Id: I461776024a21233e291102ca6d05dc7fa767f71a
This commit is contained in:
parent
5a0585359d
commit
7df45744ad
@ -60,12 +60,10 @@ static int elf_unpack(char *exec_hdr,
|
|||||||
{
|
{
|
||||||
*hdr = (Elf_Ehdr *) exec_hdr;
|
*hdr = (Elf_Ehdr *) exec_hdr;
|
||||||
if(!elf_sane(*hdr)) {
|
if(!elf_sane(*hdr)) {
|
||||||
printf("elf_unpack: elf_sane failed\n");
|
|
||||||
return ENOEXEC;
|
return ENOEXEC;
|
||||||
}
|
}
|
||||||
*phdr = (Elf_Phdr *)(exec_hdr + (*hdr)->e_phoff);
|
*phdr = (Elf_Phdr *)(exec_hdr + (*hdr)->e_phoff);
|
||||||
if(!elf_ph_sane(*phdr)) {
|
if(!elf_ph_sane(*phdr)) {
|
||||||
printf("elf_unpack: elf_ph_sane failed\n");
|
|
||||||
return ENOEXEC;
|
return ENOEXEC;
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
@ -135,7 +133,6 @@ int libexec_load_elf(struct exec_info *execi)
|
|||||||
assert(execi->hdr != NULL);
|
assert(execi->hdr != NULL);
|
||||||
|
|
||||||
if((e=elf_unpack(execi->hdr, execi->hdr_len, &hdr, &phdr)) != OK) {
|
if((e=elf_unpack(execi->hdr, execi->hdr_len, &hdr, &phdr)) != OK) {
|
||||||
printf("libexec_load_elf: elf_unpack failed\n");
|
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user