mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 20:29:28 +02:00
* 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 -
This commit is contained in:
parent
ec392e2939
commit
b9084a22ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user