summaryrefslogtreecommitdiff
path: root/extra/binutils/gold-mips.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
committerdavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
commitc35d083dc525e223b085ec00e6863ea6eafb003c (patch)
tree5bbe25b4f92cd1821c8cbbefed9c19de6e42b98e /extra/binutils/gold-mips.patch
parent7cc715c1249422ddf91987be64a35eef43e3e62d (diff)
updated musl
Diffstat (limited to 'extra/binutils/gold-mips.patch')
-rw-r--r--extra/binutils/gold-mips.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/binutils/gold-mips.patch b/extra/binutils/gold-mips.patch
new file mode 100644
index 0000000..291a2aa
--- /dev/null
+++ b/extra/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