From 1336e69171ddd226a4f0b98428add38f20ccdc00 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Wed, 20 May 2026 06:51:51 +0100 Subject: [PATCH] Only error when not undefined --- intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.34.1