* Fixed test crash with -Cg on non-Darwin targets: the GOT slot stores address of symbol, not its value.

git-svn-id: trunk@21974 -
This commit is contained in:
sergei 2012-07-26 14:52:22 +00:00
parent 44fd18a041
commit 1763309d8e

View File

@ -24,9 +24,11 @@ begin
{$else darwin}
addl $_GLOBAL_OFFSET_TABLE_+1,%ecx
movdqa %xmm1,%xmm2
movdqa q@GOT(%ecx),%xmm4
movl q@GOT(%ecx),%eax
movdqa (%eax),%xmm4
psubq %xmm1,%xmm2
psubq q@GOT(%ecx),%xmm4
movl q@GOT(%ecx),%eax
psubq (%eax),%xmm4
{$endif darwin}
{$else FPC_PIC}
movdqa %xmm1,%xmm2