mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
labels: if we have overridden EXTERN, don't call define_label()
If we have overridden EXTERN, then we should not call define_label() on it again. Return a fail status from declare_label(), indicating that the type declaration failed, but of course we don't print an error message. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
2139874de2
commit
4fb2acc0d3
1 changed files with 1 additions and 1 deletions
|
|
@ -398,7 +398,7 @@ static bool declare_label_lptr(union label *lptr,
|
|||
type == LBL_EXTERN) {
|
||||
if (!lptr->defn.special)
|
||||
lptr->defn.special = perm_copy(special);
|
||||
return true;
|
||||
return false; /* Don't call define_label() after this! */
|
||||
}
|
||||
|
||||
nasm_error(ERR_NONFATAL, "symbol `%s' declared both as %s and %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue