mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 03:28:40 +02:00
* 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:
parent
44fd18a041
commit
1763309d8e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user