* for rip_relative if cs_create_pic is selected

git-svn-id: trunk@14392 -
This commit is contained in:
pierre 2009-12-10 13:38:34 +00:00
parent 4d30275d7f
commit dbf2be812a

View File

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