[mips] Add support for mips*r6-*-musl
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 25 Aug 2016 14:13:02 +0000 (14:13 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Thu, 25 Aug 2016 14:13:02 +0000 (14:13 +0000)
gcc/
* config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
(MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.

From-SVN: r239760

gcc/ChangeLog
gcc/config/mips/linux.h

index 9a5c05b4179b7079bc359cdbbbf0d2d02d71bd08..8c9d505094ffe205f852975a66f1dfc448a6dd45 100644 (file)
@@ -1,3 +1,8 @@
+2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
+       (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
+
 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
 
        * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
index fa253b65313949ba566b8b3b277d68bab6caade1..dc51c45f2d3f5c5dd39fdb860b6f1b4e68774f7c 100644 (file)
@@ -38,10 +38,13 @@ along with GCC; see the file COPYING3.  If not see
   "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
 
 #undef MUSL_DYNAMIC_LINKER32
-#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips%{EL:el}%{msoft-float:-sf}.so.1"
+#define MUSL_DYNAMIC_LINKER32 \
+  "/lib/ld-musl-mips%{mips32r6|mips64r6:r6}%{EL:el}%{msoft-float:-sf}.so.1"
 #undef MUSL_DYNAMIC_LINKER64
-#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips64%{EL:el}%{msoft-float:-sf}.so.1"
-#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mipsn32%{EL:el}%{msoft-float:-sf}.so.1"
+#define MUSL_DYNAMIC_LINKER64 \
+  "/lib/ld-musl-mips64%{mips64r6:r6}%{EL:el}%{msoft-float:-sf}.so.1"
+#define MUSL_DYNAMIC_LINKERN32 \
+  "/lib/ld-musl-mipsn32%{mips64r6:r6}%{EL:el}%{msoft-float:-sf}.so.1"
 
 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
 #define GNU_USER_DYNAMIC_LINKERN32 \