coff: skip over bad symbol table entries.

This commit is contained in:
Daniel Beer 2012-08-01 12:20:17 +12:00
parent 0e5c38231b
commit 377e30ea03
1 changed files with 2 additions and 1 deletions

View File

@ -383,7 +383,8 @@ int coff_syms(FILE *in)
name = strtab + offset;
}
if ((storage_class == C_EXT || storage_class == C_LABEL) &&
if (name &&
(storage_class == C_EXT || storage_class == C_LABEL) &&
stab_set(name, value) < 0) {
printc_err("coff: failed to insert symbol\n");
ret = -1;