Add support for more MIPS variants to the linker command line.
authorMatt Jenkins <matt@majenko.co.uk>
Mon, 11 Jan 2021 14:31:55 +0000 (14:31 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 11 Jan 2021 14:31:55 +0000 (14:31 +0000)
PR ld/27167
* ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
and mips64r5 to list of known mips targets.

ld/ChangeLog
ld/ldmain.c

index ecebb84f3459119dae8141901a2eaeef25835bd6..9dc7c3ffda3b2ee3f654fc7bf0a0092ee98656e5 100644 (file)
@@ -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.
index 1e137426ea776676c827f8c2fbf69d0a3a3562de..863df0293ea12ffc29deee1cb363bedd947082b3 100644 (file)
@@ -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