204-musl_sh.patch 512 B

1234567891011121314151617
  1. --- a/gcc/config/sh/linux.h
  2. +++ b/gcc/config/sh/linux.h
  3. @@ -43,7 +43,14 @@ along with GCC; see the file COPYING3.
  4. #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
  5. +#if TARGET_BIG_ENDIAN_DEFAULT /* BE */
  6. +#define MUSL_DYNAMIC_LINKER_E "eb"
  7. +#else
  8. +#define MUSL_DYNAMIC_LINKER_E
  9. +#endif
  10. +
  11. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  12. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E ".so.1"
  13. #undef SUBTARGET_LINK_EMUL_SUFFIX
  14. #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"