Fix the hordes of bogus defs.

They were caused by unused external defs, so not processing unused externs
in the first place is the simplest solution.
This commit is contained in:
Bill Currie 2011-03-04 14:51:09 +09:00
parent 7b7f4c70e0
commit 9a96febdf5

View file

@ -350,6 +350,8 @@ add_defs (qfo_t *qfo, qfo_mspace_t *space, qfo_mspace_t *dest_space)
odef->file = linker_add_string (QFOSTR (qfo, idef->file));
type = (qfot_type_t *) (char *) (qfo_type_defs->d.data + idef->type);
odef->type = type->t.class; // pointer to type in work
if (odef->flags & QFOD_EXTERNAL && !odef->num_relocs)
continue;
ref = get_defref (odef, dest_space);
work_defrefs[num_work_defrefs++] = ref;
process_def (ref, dest_space);