mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[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:
parent
c7cde5f409
commit
b8984e5f66
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue