diff --git a/tests/webtbs/tw7851a.pp b/tests/webtbs/tw7851a.pp index 88c3c89b02..0d578c8b0c 100644 --- a/tests/webtbs/tw7851a.pp +++ b/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} diff --git a/tests/webtbs/tw8153a.pp b/tests/webtbs/tw8153a.pp index d11e0a75c1..0c52093f76 100644 --- a/tests/webtbs/tw8153a.pp +++ b/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)