svn commit: r348869 - stable/12/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon Jun 10 17:38:48 UTC 2019
Author: kib
Date: Mon Jun 10 17:38:47 2019
New Revision: 348869
URL: https://svnweb.freebsd.org/changeset/base/348869
Log:
MFC r348536:
Remove dead check.
Modified:
stable/12/sys/kern/link_elf_obj.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/link_elf_obj.c
==============================================================================
--- stable/12/sys/kern/link_elf_obj.c Mon Jun 10 17:36:14 2019 (r348868)
+++ stable/12/sys/kern/link_elf_obj.c Mon Jun 10 17:38:47 2019 (r348869)
@@ -714,11 +714,6 @@ link_elf_load_file(linker_class_t cls, const char *fil
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);
More information about the svn-src-all
mailing list