crosstool-ng/patches/gcc/4.4.1/400-pr42289-fix-libffi-build-on-arm-oabi.patch
Yann E. MORIN" 25953c386f cc/gcc: fix pr42289: incorrect alignment on OABI
Fix building libffi on OABI.
Although it has been marked as 4.3-only, it is stil not fixed,
and also applies to 4.4.x

See:
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42289

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-11-13 23:26:21 +01:00

12 lines
272 B
Diff

--- gcc-4.3.4/libffi/src/arm/sysv.S
+++ gcc-4.3.4/libffi/src/arm/sysv.S
@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
stmfd sp!, {ip, lr}
UNWIND .save {r0, lr}
add r2, sp, #8
- .pad #16
+ UNWIND .pad #16
sub sp, sp, #16
str sp, [sp, #8]
add r1, sp, #8