From c0f6e439cc59fa60fec3a4c4ff56e6fac52a8c65 Mon Sep 17 00:00:00 2001 From: Matt Jenkins Date: Mon, 11 Jan 2021 14:31:55 +0000 Subject: 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. --- ld/ldmain.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ld/ldmain.c') diff --git a/ld/ldmain.c b/ld/ldmain.c index 1e137426ea7..863df0293ea 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 -- cgit v1.2.1