diff --git a/compiler/x86/cgx86.pas b/compiler/x86/cgx86.pas index d27221f9df..7253c3da03 100644 --- a/compiler/x86/cgx86.pas +++ b/compiler/x86/cgx86.pas @@ -935,7 +935,7 @@ unit cgx86; else if (cs_create_pic in current_settings.moduleswitches) {$ifdef x86_64} and not((ref.symbol.bind=AB_LOCAL) and - (ref.symbol.typ=AT_DATA)) + (ref.symbol.typ in [AT_DATA,AT_LABEL,AT_ADDR])) {$endif x86_64} then begin