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.
This commit is contained in:
emaste 2018-05-30 12:55:27 +00:00
parent fbe5f2b7e0
commit c2e419ed96

View File

@ -656,7 +656,8 @@ link_elf_load_file(linker_class_t cls, const char *filename,
}
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;
}