summaryrefslogtreecommitdiff
path: root/debian/patches/fix-ffi_call_VFP-with-no-VFP-argument.diff
blob: 930252d3aff67c6c7c1770645a44a6eef9d537db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# DP: armhf: Fix ffi_call_VFP with no VFP arguments.

--- a/src/libffi/src/arm/sysv.S
+++ b/src/libffi/src/arm/sysv.S
@@ -368,6 +368,7 @@ ARM_FUNC_START ffi_call_VFP
 
 	@ Load VFP register args if needed
 	cmp	r0, #0
+	mov	ip, fp
 	beq	LSYM(Lbase_args)
 
 	@ Load only d0 if possible