From 7c08e5cb572b983da21c23af7b8e904a55117e10 Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 5 Mar 2010 13:46:36 +0000 Subject: [PATCH] * Fix solaris problem after commit rev 14971 git-svn-id: trunk@14974 - --- compiler/x86/cgx86.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/x86/cgx86.pas b/compiler/x86/cgx86.pas index cd41b2b829..808b845ed0 100644 --- a/compiler/x86/cgx86.pas +++ b/compiler/x86/cgx86.pas @@ -405,7 +405,8 @@ unit cgx86; } if (ref.symbol.bind=AB_LOCAL) and (ref.symbol.typ=AT_DATA) and - (target_info.system=system_x86_64_darwin) then + ((target_info.system=system_x86_64_darwin) or + (target_info.system=system_x86_64_solaris)) then begin { unfortunately, RIP-based addresses don't support an index } if (ref.base<>NR_NO) or @@ -933,7 +934,8 @@ unit cgx86; {$ifdef x86_64} and not((ref.symbol.bind=AB_LOCAL) and (ref.symbol.typ=AT_DATA) and - (target_info.system=system_x86_64_darwin)) + ((target_info.system=system_x86_64_darwin) or + (target_info.system=system_x86_64_solaris))) {$endif x86_64} then begin