mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:39:25 +02:00
* for rip_relative if cs_create_pic is selected
git-svn-id: trunk@14392 -
This commit is contained in:
parent
4d30275d7f
commit
dbf2be812a
@ -933,7 +933,10 @@ unit cgx86;
|
||||
a_op_const_reg(list,OP_ADD,OS_ADDR,offset,r);
|
||||
end
|
||||
{$ifdef x86_64}
|
||||
else if (target_info.system in (system_all_windows+[system_x86_64_darwin])) then
|
||||
else if (target_info.system in (system_all_windows+[system_x86_64_darwin]))
|
||||
or ((target_info.system = system_x86_64_solaris) and
|
||||
(cs_create_pic in current_settings.moduleswitches))
|
||||
then
|
||||
begin
|
||||
{ Win64 and Darwin/x86_64 always require RIP-relative addressing }
|
||||
tmpref:=ref;
|
||||
|
Loading…
Reference in New Issue
Block a user