1
0

202-musl_mips.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From: ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
  2. Date: Fri, 8 May 2015 15:16:50 +0000 (+0000)
  3. Subject: [PATCH 6/13] mips musl support
  4. X-Git-Url: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;h=2550b6a866c887472b587bef87d433c51cf1ebc8
  5. [PATCH 6/13] mips musl support
  6. 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
  7. Szabolcs Nagy <szabolcs.nagy@arm.com>
  8. * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
  9. (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
  10. (GNU_USER_DYNAMIC_LINKERN32): Update.
  11. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222915 138bc75d-0d04-0410-961f-82ee72b054a4
  12. ---
  13. --- a/gcc/config/mips/linux.h
  14. +++ b/gcc/config/mips/linux.h
  15. @@ -37,7 +37,13 @@ along with GCC; see the file COPYING3.
  16. #define UCLIBC_DYNAMIC_LINKERN32 \
  17. "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
  18. +#undef MUSL_DYNAMIC_LINKER32
  19. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips%{EL:el}%{msoft-float:-sf}.so.1"
  20. +#undef MUSL_DYNAMIC_LINKER64
  21. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips64%{EL:el}%{msoft-float:-sf}.so.1"
  22. +#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mipsn32%{EL:el}%{msoft-float:-sf}.so.1"
  23. +
  24. #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
  25. #define GNU_USER_DYNAMIC_LINKERN32 \
  26. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
  27. - BIONIC_DYNAMIC_LINKERN32)
  28. + BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)