Put back a test for binaries with no PT_LOAD entries I over-jealosly
removed in r1.69. Apploved by: re (rwatson)
This commit is contained in:
parent
8fea899f6b
commit
999d9d2bd4
@ -712,6 +712,10 @@ digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry, const char *path)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (nsegs < 1) {
|
||||
_rtld_error("%s: too few PT_LOAD segments", path);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
obj->entry = entry;
|
||||
return obj;
|
||||
|
Loading…
x
Reference in New Issue
Block a user