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:
parent
fbe5f2b7e0
commit
c2e419ed96
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user