From: Robert Pengelly Date: Wed, 20 May 2026 05:51:51 +0000 (+0100) Subject: Only error when not undefined X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;p=sasm.git Only error when not undefined --- diff --git a/intel.c b/intel.c index b4e59e1..9c01213 100644 --- a/intel.c +++ b/intel.c @@ -1946,7 +1946,7 @@ static void handler_extern (char *start, char **pp) { if ((symbol = symbol_find (name))) { - if (symbol->scope == SYMBOL_SCOPE_LOCAL || symbol->scope == SYMBOL_SCOPE_GLOBAL) { + if (symbol->section != undefined_section && (symbol->scope == SYMBOL_SCOPE_LOCAL || symbol->scope == SYMBOL_SCOPE_GLOBAL)) { report_line_at (get_filename (), get_line_number (), REPORT_ERROR, start, caret, "symbol '%s' is already defined", name); } else {