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:
Alexander Kabaev 2002-11-29 16:41:31 +00:00
parent 8fea899f6b
commit 999d9d2bd4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107390

View File

@ -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;