1 --- a/gcc/config/mips/linux.h
2 +++ b/gcc/config/mips/linux.h
3 @@ -18,3 +18,10 @@ along with GCC; see the file COPYING3.
4 <http://www.gnu.org/licenses/>. */
6 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
8 +#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
9 +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
11 +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
13 +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E ".so.1"