mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 12:09:14 +02:00
* if we load a got depends only if one is needed, not if PIC is generated as this could be also caused by tls support
git-svn-id: trunk@43055 -
This commit is contained in:
parent
02deb7d954
commit
bd1d6f335d
@ -538,8 +538,7 @@ unit cgcpu;
|
|||||||
tmpreg: TRegister;
|
tmpreg: TRegister;
|
||||||
begin
|
begin
|
||||||
{ allocate PIC register }
|
{ allocate PIC register }
|
||||||
if (cs_create_pic in current_settings.moduleswitches) and
|
if (tf_pic_uses_got in target_info.flags) and
|
||||||
(tf_pic_uses_got in target_info.flags) and
|
|
||||||
(pi_needs_got in current_procinfo.flags) then
|
(pi_needs_got in current_procinfo.flags) then
|
||||||
begin
|
begin
|
||||||
if not (target_info.system in [system_i386_darwin,system_i386_iphonesim]) then
|
if not (target_info.system in [system_i386_darwin,system_i386_iphonesim]) then
|
||||||
|
Loading…
Reference in New Issue
Block a user