summaryrefslogtreecommitdiff
path: root/src/vm_ppc.dasc
diff options
context:
space:
mode:
authorMike Pall <mike>2013-06-03 17:30:35 +0200
committerMike Pall <mike>2013-06-03 17:30:35 +0200
commit338e9863c220462201fde0e725aba4002310c849 (patch)
tree44541896aeb35881e66d3a913fda2b0fe4fca922 /src/vm_ppc.dasc
parent3eeb7d3aa02259e93db6e4816909e80acb57f8f8 (diff)
downloadluajit-338e9863c220462201fde0e725aba4002310c849.tar.gz
luajit-338e9863c220462201fde0e725aba4002310c849.tar.bz2
luajit-338e9863c220462201fde0e725aba4002310c849.zip
PPC: Add plt suffix for external calls from assembler code.
Diffstat (limited to 'src/vm_ppc.dasc')
-rw-r--r--src/vm_ppc.dasc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm_ppc.dasc b/src/vm_ppc.dasc
index 685ea518..f2530811 100644
--- a/src/vm_ppc.dasc
+++ b/src/vm_ppc.dasc
@@ -49,7 +49,7 @@
49|// Convenience macros for TOC handling. 49|// Convenience macros for TOC handling.
50|.if TOC 50|.if TOC
51|// Linker needs a TOC patch area for every external call relocation. 51|// Linker needs a TOC patch area for every external call relocation.
52|.macro blex, target; bl extern target; nop; .endmacro 52|.macro blex, target; bl extern target@plt; nop; .endmacro
53|.macro .toc, a, b; a, b; .endmacro 53|.macro .toc, a, b; a, b; .endmacro
54|.if P64 54|.if P64
55|.define TOC_OFS, 8 55|.define TOC_OFS, 8
@@ -59,7 +59,7 @@
59|.define ENV_OFS, 8 59|.define ENV_OFS, 8
60|.endif 60|.endif
61|.else // No TOC. 61|.else // No TOC.
62|.macro blex, target; bl extern target; .endmacro 62|.macro blex, target; bl extern target@plt; .endmacro
63|.macro .toc, a, b; .endmacro 63|.macro .toc, a, b; .endmacro
64|.endif 64|.endif
65|.macro .tocenv, a, b; .if TOCENV; a, b; .endif; .endmacro 65|.macro .tocenv, a, b; .if TOCENV; a, b; .endif; .endmacro