Remove dead check.
We already handled the case when symstrindex < 0 at line 680. Reported by: danfe using PVS-studio Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
d01905837c
commit
2fcb56b412
@ -714,11 +714,6 @@ link_elf_load_file(linker_class_t cls, const char *filename,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (symstrindex == -1) {
|
||||
link_elf_error(filename, "lost symbol string index");
|
||||
error = ENOEXEC;
|
||||
goto out;
|
||||
}
|
||||
/* Allocate space for and load the symbol strings */
|
||||
ef->ddbstrcnt = shdr[symstrindex].sh_size;
|
||||
ef->ddbstrtab = malloc(shdr[symstrindex].sh_size, M_LINKER, M_WAITOK);
|
||||
|
Loading…
Reference in New Issue
Block a user