28 lines
760 B
Diff
28 lines
760 B
Diff
|
From 3a60531f53f77bcf5e0f801c64279b31a06da88e Mon Sep 17 00:00:00 2001
|
||
|
From: Anthony Green <green@moxielogic.com>
|
||
|
Date: Fri, 28 Feb 2014 00:20:17 -0500
|
||
|
Subject: [PATCH] When no VFP arguments are present the IP register is used
|
||
|
uninitialized. Initialize it to the value of FP.
|
||
|
|
||
|
This fixes a number of testsuite failures when configured for
|
||
|
armv7l-unknown-linux-gnueabihf
|
||
|
---
|
||
|
libffi/src/arm/sysv.S | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/libffi/src/arm/sysv.S b/libffi/src/arm/sysv.S
|
||
|
index fb38cd6..2857bc8 100644
|
||
|
--- a/libffi/src/arm/sysv.S
|
||
|
+++ b/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
|
||
|
--
|
||
|
2.1.4
|
||
|
|