From 2585309c04194559ace39e58f72ae2c3260b96ae Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 13 Nov 2005 21:36:38 +0000 Subject: [PATCH] * of course, we can't omit pic generation for local symbols git-svn-id: trunk@1743 - --- compiler/x86/cgx86.pas | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/compiler/x86/cgx86.pas b/compiler/x86/cgx86.pas index 5ba350ffd0..49bef197a2 100644 --- a/compiler/x86/cgx86.pas +++ b/compiler/x86/cgx86.pas @@ -1,5 +1,5 @@ { - Copyright (c) 1998-2002 by Florian Klaempfl + Copyright (c) 1998-2005 by Florian Klaempfl This unit implements the common parts of the code generator for the i386 and the x86-64. @@ -368,8 +368,7 @@ unit cgx86; end; end; if (cs_create_pic in aktmoduleswitches) and - assigned(ref.symbol) and - not(ref.symbol.defbind in [AB_COMMON,AB_LOCAL]) then + assigned(ref.symbol) then begin reference_reset_symbol(href,ref.symbol,0); hreg:=getaddressregister(list); @@ -394,8 +393,7 @@ unit cgx86; end; {$else x86_64} if (cs_create_pic in aktmoduleswitches) and - assigned(ref.symbol) and - not(ref.symbol.defbind in [AB_COMMON,AB_LOCAL]) then + assigned(ref.symbol) then begin reference_reset_symbol(href,ref.symbol,0); hreg:=getaddressregister(list); @@ -702,8 +700,7 @@ unit cgx86; begin if assigned(ref.symbol) then begin - if (cs_create_pic in aktmoduleswitches) and - not(symbol.defbind in [AB_COMMON,AB_LOCAL]) then + if (cs_create_pic in aktmoduleswitches) then begin {$ifdef x86_64} reference_reset_symbol(tmpref,ref.symbol,0);