aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMatt Jenkins <matt@majenko.co.uk>2021-01-11 14:31:55 +0000
committerNick Clifton <nickc@redhat.com>2021-01-11 14:31:55 +0000
commitc0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65 (patch)
tree7e21485281babd383ef9f31c1fcfecbd4e447e69 /ld
parent9c70334deec0fb5262c3f2ce2ea9bcb530aee20e (diff)
downloadgdb-c0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65.zip
gdb-c0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65.tar.gz
gdb-c0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65.tar.bz2
Add support for more MIPS variants to the linker command line.
PR ld/27167 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3 and mips64r5 to list of known mips targets.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/ldmain.c4
2 files changed, 11 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index ecebb84..9dc7c3f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,4 +1,10 @@
-2021-01-11 Nick Clifton <nickc@redhat.com>
+2021-01-11 Matt Jenkins <matt@majenko.co.uk>
+
+ PR ld/27167
+ * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
+ and mips64r5 to list of known mips targets.
+
+2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
* po/pt_BR.po: Updated Brazilian Portuguese translation.
` * po/uk.po: Updated Ukranian translation.
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 1e13742..863df02 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -700,9 +700,13 @@ get_emulation (int argc, char **argv)
|| strcmp (argv[i], "-mips5") == 0
|| strcmp (argv[i], "-mips32") == 0
|| strcmp (argv[i], "-mips32r2") == 0
+ || strcmp (argv[i], "-mips32r3") == 0
+ || strcmp (argv[i], "-mips32r5") == 0
|| strcmp (argv[i], "-mips32r6") == 0
|| strcmp (argv[i], "-mips64") == 0
|| strcmp (argv[i], "-mips64r2") == 0
+ || strcmp (argv[i], "-mips64r3") == 0
+ || strcmp (argv[i], "-mips64r5") == 0
|| strcmp (argv[i], "-mips64r6") == 0)
{
/* FIXME: The arguments -mips1, -mips2, -mips3, etc. are