From 25953c386f8a4ca580bbe7c09e95d18492424c1d Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 13 Nov 2010 23:26:21 +0100 Subject: 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" diff --git a/patches/gcc/4.3.5/410-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.3.5/410-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.3.5/410-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/patches/gcc/4.4.0/400-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.4.0/400-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.4.0/400-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/patches/gcc/4.4.1/400-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.4.1/400-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.4.1/400-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/patches/gcc/4.4.2/400-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.4.2/400-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.4.2/400-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/patches/gcc/4.4.3/400-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.4.3/400-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.4.3/400-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/patches/gcc/4.4.4/400-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.4.4/400-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.4.4/400-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/patches/gcc/4.4.5/400-pr42289-fix-libffi-build-on-arm-oabi.patch b/patches/gcc/4.4.5/400-pr42289-fix-libffi-build-on-arm-oabi.patch new file mode 100644 index 0000000..8654879 --- /dev/null +++ b/patches/gcc/4.4.5/400-pr42289-fix-libffi-build-on-arm-oabi.patch @@ -0,0 +1,11 @@ +--- 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 -- cgit v0.10.2-6-g49f6