[qfcc] Fix another infinite loop in the linker

I think this should be it for infinite loops caused by undefined
symbols. I don't know why I didn't remove this continue when I removed
the other.
This commit is contained in:
Bill Currie 2020-03-03 13:39:24 +09:00
parent c7cde5f409
commit b8984e5f66

View file

@ -1119,10 +1119,8 @@ undefined_def (qfo_def_t *def)
pr_lineno_t *line; pr_lineno_t *line;
while (func - work->funcs < work->num_funcs) { while (func - work->funcs < work->num_funcs) {
if (func->code < 0) { if (func->code >= 0
continue; && (pr_uint_t) func->code <= reloc->offset) {
}
if ((pr_uint_t) func->code <= reloc->offset) {
if (!best || reloc->offset - func->code < best_dist) { if (!best || reloc->offset - func->code < best_dist) {
best = func; best = func;
best_dist = reloc->offset - func->code; best_dist = reloc->offset - func->code;