* reverted lazy binding patch: lazy binding requires anyways PIC

git-svn-id: trunk@1758 -
This commit is contained in:
florian 2005-11-15 19:21:42 +00:00
parent 3bf1152a9c
commit cd96d43ac3

View File

@ -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;