From cd96d43ac36f4cb11b2b75fa2701c3cda715b095 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 15 Nov 2005 19:21:42 +0000 Subject: [PATCH] * reverted lazy binding patch: lazy binding requires anyways PIC git-svn-id: trunk@1758 - --- compiler/ncgcal.pas | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/compiler/ncgcal.pas b/compiler/ncgcal.pas index b6e324fcaf..96dd127eb1 100644 --- a/compiler/ncgcal.pas +++ b/compiler/ncgcal.pas @@ -934,19 +934,7 @@ implementation if (po_interrupt in procdefinition.procoptions) then extra_interrupt_code; extra_call_code; - - { lazy binding on linux? } - if (target_info.system in system_linux) and - assigned(tprocdef(procdefinition).import_dll) and - (tprocdef(procdefinition).import_dll^='') then - begin - sym:=objectlibrary.newasmsymbol(tprocdef(procdefinition).mangledname,AB_EXTERNAL,AT_FUNCTION); - reference_reset_symbol(href,sym,0); - href.refaddr:=addr_pic; - cg.a_call_ref(exprasmlist,href); - end - else - cg.a_call_name(exprasmlist,tprocdef(procdefinition).mangledname); + cg.a_call_name(exprasmlist,tprocdef(procdefinition).mangledname); extra_post_call_code; end; end;