mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-08-23 10:33:50 -04:00
NASM 0.98.20
This commit is contained in:
parent
2654e0d8ea
commit
b1a0143a0d
5
nasm.c
5
nasm.c
@ -819,7 +819,7 @@ static void assemble_file (char *fname)
|
|||||||
*q++ = '\0';
|
*q++ = '\0';
|
||||||
ofmt->symdef(value, 0L, 0L, 3, q);
|
ofmt->symdef(value, 0L, 0L, 3, q);
|
||||||
}
|
}
|
||||||
} else if (pass0 == 1) { /* pass == 1 */
|
} else if (pass == 1) { /* pass == 1 */
|
||||||
q = value;
|
q = value;
|
||||||
validid = TRUE;
|
validid = TRUE;
|
||||||
if (!isidstart(*q))
|
if (!isidstart(*q))
|
||||||
@ -840,9 +840,12 @@ static void assemble_file (char *fname)
|
|||||||
} else
|
} else
|
||||||
special = NULL;
|
special = NULL;
|
||||||
if (!is_extern(value)) { /* allow re-EXTERN to be ignored */
|
if (!is_extern(value)) { /* allow re-EXTERN to be ignored */
|
||||||
|
int temp = pass0;
|
||||||
|
pass0 = 1; /* fake pass 1 in labels.c */
|
||||||
declare_as_global (value, special, report_error);
|
declare_as_global (value, special, report_error);
|
||||||
define_label (value, seg_alloc(), 0L, NULL, FALSE, TRUE,
|
define_label (value, seg_alloc(), 0L, NULL, FALSE, TRUE,
|
||||||
ofmt, report_error);
|
ofmt, report_error);
|
||||||
|
pass0 = temp;
|
||||||
}
|
}
|
||||||
} /* else pass0 == 1 */
|
} /* else pass0 == 1 */
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user