Forráskód Böngészése

Fix two tests for ELFV2 powerpc64 ABI

Pierre Muller 2 éve
szülő
commit
b202fb2b0a
2 módosított fájl, 7 hozzáadás és 1 törlés
  1. 4 0
      tests/webtbs/tw7851a.pp
  2. 3 1
      tests/webtbs/tw8153a.pp

+ 4 - 0
tests/webtbs/tw7851a.pp

@@ -39,7 +39,11 @@ asm
 {$else}
   std r0, retaddr
 {$ifdef linux}
+  {$ifdef FPC_ABI_ELFV2}
+  bl TMyObject.Test2
+  {$else}
   bl .TMyObject.Test2
+  {$endif}
 {$else linux}
   bl TMyObject.Test2
 {$endif linux}

+ 3 - 1
tests/webtbs/tw8153a.pp

@@ -18,7 +18,9 @@ asm
   ld r4,0(r3)
   ld r4,+vmtoffset tc.v(r4)
 {$if defined(linux) or defined(aix)}
-  ld r4,0(r4)
+  {$ifndef FPC_ABI_ELFV2}
+    ld r4,0(r4)
+  {$endif}
 {$endif linux or aix}
 {$else}
   lwz r4,0(r3)