diff --git a/compiler/aasmdef.pas b/compiler/aasmdef.pas index da9df21a1e..4cf1a13809 100644 --- a/compiler/aasmdef.pas +++ b/compiler/aasmdef.pas @@ -56,7 +56,7 @@ function TAsmDataDef.DefineAsmSymbolByClass(symclass: TAsmSymbolClass; const s: result:=DefineAsmSymbolByClassBase(symclass,s,_bind,_typ,def,wasdefined); { define the indirect asmsymbol if necessary } if not wasdefined and - (_bind in [AB_GLOBAL,AB_COMMON]) and + (_bind in [AB_GLOBAL,AB_COMMON,AB_PRIVATE_EXTERN]) and (_typ<>AT_DATA_NOINDIRECT) and (((_typ=AT_DATA) and (tf_supports_packages in target_info.flags) and