Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 12:55:27 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334380 - head/sys/kern
Message-ID:  <201805301255.w4UCtRLY043521@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed May 30 12:55:27 2018
New Revision: 334380
URL: https://svnweb.freebsd.org/changeset/base/334380

Log:
  link_elf_obj: correct an error message
  
  Previously we'd report that a file has "no valid symbol table" if it in
  fact had two or more.  Change the message to report that there must be
  exactly one.

Modified:
  head/sys/kern/link_elf_obj.c

Modified: head/sys/kern/link_elf_obj.c
==============================================================================
--- head/sys/kern/link_elf_obj.c	Wed May 30 12:40:37 2018	(r334379)
+++ head/sys/kern/link_elf_obj.c	Wed May 30 12:55:27 2018	(r334380)
@@ -656,7 +656,8 @@ link_elf_load_file(linker_class_t cls, const char *fil
 	}
 	if (nsym != 1) {
 		/* Only allow one symbol table for now */
-		link_elf_error(filename, "file has no valid symbol table");
+		link_elf_error(filename,
+		    "file must have exactly one symbol table");
 		error = ENOEXEC;
 		goto out;
 	}



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