toolchain/gcc: upgrade Linaro GCC 4.9 to 4.9-2015.03
[openwrt/openwrt.git] / toolchain / gcc / patches / 4.9-linaro / 221-musl_mips64.patch
1 --- a/gcc/config/mips/linux64.h
2 +++ b/gcc/config/mips/linux64.h
3 @@ -39,6 +39,16 @@ along with GCC; see the file COPYING3.
4 "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
5
6 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
7 +
8 +#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
9 +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
10 +#else
11 +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
12 +#endif
13 +
14 +#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
15 +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
16 +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
17 #define GNU_USER_DYNAMIC_LINKERN32 \
18 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
19 - BIONIC_DYNAMIC_LINKERN32)
20 + BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)