[gcc] update patch to build 32bit version of libgcc on x86_64 toolchain
Change-Id: I436647163f95d66c5a1e6ee6170c6871a6443d61
diff --git a/patches/gcc-patch.txt b/patches/gcc-patch.txt
index 9a12526..48fba78 100644
--- a/patches/gcc-patch.txt
+++ b/patches/gcc-patch.txt
@@ -63,11 +63,15 @@
reverted:
--- gcc-4.8.2.orig/gcc/config/i386/t-x86_64-elf 1970-01-01 01:00:00.000000000 +0100
+++ gcc-4.8.2/gcc/config/i386/t-x86_64-elf 2013-12-29 12:47:35.000000000 +0000
-@@ -0,0 +1,4 @@
+@@ -0,0 +1,8 @@
+# Add redzoneless libgcc
+
+MULTILIB_OPTIONS += mno-red-zone
+MULTILIB_DIRNAMES += no-red-zone
++
++# Build a 32bit libgcc as well
++MULTILIB_OPTIONS += m32
++MULTILIB_DIRNAMES += 32
\ No newline at end of file
reverted:
--- gcc-4.8.2.orig/gcc/config.gcc 2013-10-03 01:47:24.000000000 +0100