221-musl_mips64.patch 1.1 KB

12345678910111213141516171819202122
  1. Index: gcc-linaro-4.8-2014.04/gcc/config/mips/linux64.h
  2. ===================================================================
  3. --- gcc-linaro-4.8-2014.04.orig/gcc/config/mips/linux64.h 2014-10-23 15:52:48.999134219 -0700
  4. +++ gcc-linaro-4.8-2014.04/gcc/config/mips/linux64.h 2014-10-23 15:59:19.815116979 -0700
  5. @@ -27,6 +27,16 @@
  6. #define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
  7. #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
  8. #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
  9. +
  10. +#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
  11. +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
  12. +#else
  13. +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
  14. +#endif
  15. +
  16. +#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
  17. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
  18. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
  19. #define GNU_USER_DYNAMIC_LINKERN32 \
  20. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
  21. - BIONIC_DYNAMIC_LINKERN32)
  22. + BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)