Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2019 17:38:47 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348869 - stable/12/sys/kern
Message-ID:  <201906101738.x5AHclnL057567@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906101738.x5AHclnL057567>