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
21d7728498
commit
f6e5ddff6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348536
@ -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