logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

mono-5.0.1.1-x86_32.patch (751B)


  1. Native toolchain can default to different ABI (amd64 in bug case).
  2. Set target to i386.
  3. https://bugs.gentoo.org/600664
  4. diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
  5. index 0656a57..690c96b 100644
  6. --- a/mono/mini/aot-compiler.c
  7. +++ b/mono/mini/aot-compiler.c
  8. @@ -9926,4 +9926,6 @@ compile_asm (MonoAotCompile *acfg)
  9. #ifdef TARGET_WIN32_MSVC
  10. #define AS_OPTIONS "-c -x assembler"
  11. +#elif defined(TARGET_X86) && !defined(TARGET_MACH)
  12. +#define AS_OPTIONS "--32"
  13. #elif defined(TARGET_AMD64) && !defined(TARGET_MACH)
  14. #define AS_OPTIONS "--64"
  15. @@ -9981,4 +9983,6 @@ compile_asm (MonoAotCompile *acfg)
  16. #elif defined(TARGET_POWERPC64)
  17. #define LD_OPTIONS "-m elf64ppc"
  18. +#elif defined(TARGET_X86)
  19. +#define LD_OPTIONS "-m elf_i386"
  20. #endif