patches/gcc/4.4.5/400-pr42289-fix-libffi-build-on-arm-oabi.patch
author |
Johannes Stezenbach <js@sig21.net> |
|
Tue Oct 30 00:22:25 2012 +0000 (2012-10-30) |
changeset 3097 |
5c67476c7342 |
permissions |
-rw-r--r-- |
scripts/functions: fix endless loop in debug-shell with IO redirection
CT_DEBUG_INTERACTIVE is disabled when stdin, stdout or
stderr are redirected, but the check is only done at
the start of the build and doesn't catch when individual
build commands use redirection. When stdin is redirected
it will cause the debug shell to exit immediately, causing
and endless loop. Thus, save the stdin/our/err file handles
and restore them before invoking the debug shell.
Signed-off-by: Johannes Stezenbach <js@sig21.net>
Message-Id: <20121030102225.GA8303@sig21.net>
Patchwork-Id: 195409
yann@2202
|
1 |
--- gcc-4.3.4/libffi/src/arm/sysv.S
|
yann@2202
|
2 |
+++ gcc-4.3.4/libffi/src/arm/sysv.S
|
yann@2202
|
3 |
@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
|
yann@2202
|
4 |
stmfd sp!, {ip, lr}
|
yann@2202
|
5 |
UNWIND .save {r0, lr}
|
yann@2202
|
6 |
add r2, sp, #8
|
yann@2202
|
7 |
- .pad #16
|
yann@2202
|
8 |
+ UNWIND .pad #16
|
yann@2202
|
9 |
sub sp, sp, #16
|
yann@2202
|
10 |
str sp, [sp, #8]
|
yann@2202
|
11 |
add r1, sp, #8
|