blob: f858246cfc0c259ecfb82f48221ee05f64ee8880 [file] [log] [blame]
From 235e06dbc6073964298d556eb827e8087b07d7fe Mon Sep 17 00:00:00 2001
From: Dan Padgett <dpadgett@google.com>
Date: Thu, 24 Mar 2016 16:39:17 -0700
Subject: [PATCH 09/17] Build gold on mips
---
package/binutils/2.25.1/700-enable-gold-on-mips.patch | 11 +++++++++++
package/binutils/2.25.1/701-ignore-ld-assert.patch | 11 +++++++++++
2 files changed, 22 insertions(+)
create mode 100644 package/binutils/2.25.1/700-enable-gold-on-mips.patch
create mode 100644 package/binutils/2.25.1/701-ignore-ld-assert.patch
diff --git a/package/binutils/2.25.1/700-enable-gold-on-mips.patch b/package/binutils/2.25.1/700-enable-gold-on-mips.patch
new file mode 100644
index 0000000..85edcfd
--- /dev/null
+++ b/package/binutils/2.25.1/700-enable-gold-on-mips.patch
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -2972,7 +2972,7 @@ case "${ENABLE_GOLD}" in
+ # Check for target supported by gold.
+ case "${target}" in
+ i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
+- | aarch64*-*-* | tilegx*-*-*)
++ | aarch64*-*-* | tilegx*-*-* | mips*-*-*)
+ configdirs="$configdirs gold"
+ if test x${ENABLE_GOLD} = xdefault; then
+ default_ld=gold
diff --git a/package/binutils/2.25.1/701-ignore-ld-assert.patch b/package/binutils/2.25.1/701-ignore-ld-assert.patch
new file mode 100644
index 0000000..e85f877
--- /dev/null
+++ b/package/binutils/2.25.1/701-ignore-ld-assert.patch
@@ -0,0 +1,11 @@
+--- a/ld/ldmain.c 2015-11-11 16:48:13.241128312 -0500
++++ b/ld/ldmain.c 2015-11-11 16:41:43.982724231 -0500
+@@ -216,7 +216,8 @@
+ /* We want to notice and fail on those nasty BFD assertions which are
+ likely to signal incorrect output being generated but otherwise may
+ leave no trace. */
+- default_bfd_assert_handler = bfd_set_assert_handler (ld_bfd_assert_handler);
++ /* TODO(jfthibert) Re-enable assert failures once openssl issues are resolved */
++ /*default_bfd_assert_handler = bfd_set_assert_handler (ld_bfd_assert_handler);*/
+
+ xatexit (ld_cleanup);
--
2.8.0.rc3.226.g39d4020