* i386: Do not request GOT for every function call. GOT is requested only for external calls in thlcgcpu.a_call_name(). Local calls are always PC relative.

git-svn-id: trunk@41464 -
This commit is contained in:
yury 2019-02-25 15:48:41 +00:00
parent 039aee9568
commit a04e4971fc

View File

@ -902,10 +902,7 @@ unit cgx86;
{ darwin's assembler doesn't want @PLT after call symbols }
not(target_info.system in [system_x86_64_darwin,system_i386_iphonesim,system_x86_64_iphonesim]) then
begin
{$ifdef i386}
include(current_procinfo.flags,pi_needs_got);
{$endif i386}
r.refaddr:=addr_pic
r.refaddr:=addr_pic;
end
else
r.refaddr:=addr_full;