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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107390
@ -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…
Reference in New Issue
Block a user