summaryrefslogtreecommitdiff
path: root/powerpc64/machine.m4
diff options
context:
space:
mode:
authormamonet <maamoun@DESKTOP-KU5PF0V.localdomain>2020-12-18 17:38:39 +0200
committermamonet <maamoun@DESKTOP-KU5PF0V.localdomain>2020-12-18 17:42:14 +0200
commit94a57e070a6160000a7d5f07ea632db5c8cdba21 (patch)
tree2f902737f73c3a1c7c3ce63d388a5b70f8b384dc /powerpc64/machine.m4
parent539efc9b997dfba757cacbbc512bc0a216ffe743 (diff)
downloadnettle-94a57e070a6160000a7d5f07ea632db5c8cdba21.tar.gz
[PowerPC64] Use 32-bit offset to load data
Diffstat (limited to 'powerpc64/machine.m4')
-rw-r--r--powerpc64/machine.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/powerpc64/machine.m4 b/powerpc64/machine.m4
index e2383201..187a49b8 100644
--- a/powerpc64/machine.m4
+++ b/powerpc64/machine.m4
@@ -34,7 +34,8 @@ C used to obtain the effective address of
C DATA_SRC storage.
C DATA_LOAD_VEC(VEC_DST, DATA_SRC, GPR)
define(`DATA_LOAD_VEC',
-`ld $3,$2@got(r2)
+`addis $3,r2,$2@got@ha
+ld $3,$2@got@l($3)
lvx $1,0,$3')
dnl Usage: r0 ... r31, cr0 ... cr7