File: fix-ffi_call_VFP-with-no-VFP-argument.diff

package info (click to toggle)
gcc-4.9 4.9.2-10%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 78,296 kB
  • sloc: makefile: 1,979; python: 870; sh: 801; perl: 165; awk: 23; cpp: 14
file content (12 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (12)
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