svn commit: r350354 - stable/11/sys/kern

Konstantin Belousov kib at FreeBSD.org
Fri Jul 26 10:30:46 UTC 2019


Author: kib
Date: Fri Jul 26 10:30:45 2019
New Revision: 350354
URL: https://svnweb.freebsd.org/changeset/base/350354

Log:
  MFC r348536:
  Remove dead check.

Modified:
  stable/11/sys/kern/link_elf_obj.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/link_elf_obj.c
==============================================================================
--- stable/11/sys/kern/link_elf_obj.c	Fri Jul 26 10:21:55 2019	(r350353)
+++ stable/11/sys/kern/link_elf_obj.c	Fri Jul 26 10:30:45 2019	(r350354)
@@ -707,11 +707,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-stable-11 mailing list