diff options
Diffstat (limited to '')
-rw-r--r-- | src/vm_ppc.dasc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm_ppc.dasc b/src/vm_ppc.dasc index 6bceff9c..a7707ccc 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 |