aboutsummaryrefslogtreecommitdiffstats
path: root/main/binutils/gold-mips.patch
diff options
context:
space:
mode:
authorNils Andreas Svee <me@lochnair.net>2017-10-19 17:12:47 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-10-20 05:29:46 +0000
commit30e67c63dba1de11cfe9a7af61304af3e00a3eff (patch)
tree15883824ba0b779f4cd089e8a7f14e9366ae6c81 /main/binutils/gold-mips.patch
parentb8cb7160e1384279174210f4c590c75cd43b4058 (diff)
downloadaports-30e67c63dba1de11cfe9a7af61304af3e00a3eff.tar.bz2
aports-30e67c63dba1de11cfe9a7af61304af3e00a3eff.tar.xz
main/binutils: add mips support
* Remove hash-style-gnu.patch in favor of the patch adding a configure flag for it from upstream * Add gold-mips.patch from Debian, which makes gold configure correctly for MIPS64 targets * Use CTARGET_ARCH instead of CARCH to correctly determine whether to enable the x86_64-pep target or not
Diffstat (limited to 'main/binutils/gold-mips.patch')
-rw-r--r--main/binutils/gold-mips.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/binutils/gold-mips.patch b/main/binutils/gold-mips.patch
new file mode 100644
index 0000000000..291a2aae6a
--- /dev/null
+++ b/main/binutils/gold-mips.patch
@@ -0,0 +1,39 @@
+# DP: Fix gold on mips64 targets.
+
+gold/
+
+2016-08-09 Aurelien Jarno <aurelien@aurel32.net>
+
+ * configure.tgt: Add mips64el*-*-*|mips64le*-*-* and mips64*-*-*.
+
+
+--- a/gold/configure.tgt
++++ b/gold/configure.tgt
+@@ -153,6 +153,13 @@ aarch64*-*)
+ targ_big_endian=false
+ targ_extra_big_endian=true
+ ;;
++mips*64*el*-*-*|mips*64*le*-*-*)
++ targ_obj=mips
++ targ_machine=EM_MIPS_RS3_LE
++ targ_size=64
++ targ_big_endian=false
++ targ_extra_big_endian=true
++ ;;
+ mips*el*-*-*|mips*le*-*-*)
+ targ_obj=mips
+ targ_machine=EM_MIPS_RS3_LE
+@@ -160,6 +167,13 @@ mips*el*-*-*|mips*le*-*-*)
+ targ_big_endian=false
+ targ_extra_big_endian=true
+ ;;
++mips*64*-*-*)
++ targ_obj=mips
++ targ_machine=EM_MIPS
++ targ_size=64
++ targ_big_endian=true
++ targ_extra_big_endian=false
++ ;;
+ mips*-*-*)
+ targ_obj=mips
+ targ_machine=EM_MIPS