205-musl_x86.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From: ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
  2. Date: Fri, 15 May 2015 13:20:01 +0000 (+0000)
  3. Subject: [PATCH 9/13] x86 musl support
  4. X-Git-Url: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;h=5551c8d927c17f60837f15f8dfe46f945ba3fa9c
  5. [PATCH 9/13] x86 musl support
  6. On behalf of Szabolcs Nagy.
  7. 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
  8. * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
  9. * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
  10. (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
  11. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223218 138bc75d-0d04-0410-961f-82ee72b054a4
  12. ---
  13. --- a/gcc/config/i386/linux.h
  14. +++ b/gcc/config/i386/linux.h
  15. @@ -21,3 +21,6 @@ along with GCC; see the file COPYING3.
  16. #define GNU_USER_LINK_EMULATION "elf_i386"
  17. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  18. +
  19. +#undef MUSL_DYNAMIC_LINKER
  20. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
  21. --- a/gcc/config/i386/linux64.h
  22. +++ b/gcc/config/i386/linux64.h
  23. @@ -30,3 +30,10 @@ see the files COPYING3 and COPYING.RUNTI
  24. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  25. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
  26. #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
  27. +
  28. +#undef MUSL_DYNAMIC_LINKER32
  29. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
  30. +#undef MUSL_DYNAMIC_LINKER64
  31. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
  32. +#undef MUSL_DYNAMIC_LINKERX32
  33. +#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"