coff: skip over bad symbol table entries.
This commit is contained in:
parent
0e5c38231b
commit
377e30ea03
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue