Possibility of loading/executing ELF files on OSX

前端 未结 2 1532
星月不相逢
星月不相逢 2021-01-04 03:10

I\'m just curious as to the possibility of loading and executing elf files on OSX. I know the standard executable format is MACHO, but NASM is unable to generate debug info

相关标签:
2条回答
  • 2021-01-04 03:32

    The author of the best OS X internals book has some code showing how you'd write a kernel extension to handle another executable file format here. He gives two examples: running running Google Native Client (NaCl) ELF applications and PDP-11 apps with Apout.

    I'm not sure how mature this software is. It currently supports Leopard and better.

    0 讨论(0)
  • 2021-01-04 03:41

    There's now an 'object converter' program that says it can convert ELF files to MACHO files, plus several other conversions for executable and object/loader files. See http://agner.org/optimize/#objconv for more information. Haven't tried it but there's extensive documentation available.

    0 讨论(0)
提交回复
热议问题