From b9084a22ca9845d100d29484253fb001b8dc2f45 Mon Sep 17 00:00:00 2001 From: nickysn Date: Sun, 19 May 2013 17:51:29 +0000 Subject: [PATCH] * in the nasm writer only declare labels as global if they have labsym.bind=AB_GLOBAL; this fixes compilation of i8086-msdos programs that use multiple units git-svn-id: trunk@24529 - --- compiler/x86/agx86nsm.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/x86/agx86nsm.pas b/compiler/x86/agx86nsm.pas index 2534c5ffe6..770c9fb876 100644 --- a/compiler/x86/agx86nsm.pas +++ b/compiler/x86/agx86nsm.pas @@ -857,7 +857,7 @@ interface begin if tai_label(hp).labsym.is_used then begin - if SmartAsm then + if SmartAsm and (tai_label(hp).labsym.bind=AB_GLOBAL) then begin AsmWrite(#9'GLOBAL '); AsmWriteLn(tai_label(hp).labsym.name);