Skip to content
Snippets Groups Projects
Commit 0f6c455c authored by Raymond Toy's avatar Raymond Toy
Browse files

Support the creation of mach-o object files for ppc.

parent 537cc9bb
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,10 @@ write_mach_o_header(int fd) ...@@ -130,7 +130,10 @@ write_mach_o_header(int fd)
/* Ident array. */ /* Ident array. */
eh.magic = MH_MAGIC; eh.magic = MH_MAGIC;
/* Currently only support x86's */ #if defined(__ppc__)
eh.cputype = CPU_TYPE_POWERPC;
eh.cpusubtype = CPU_SUBTYPE_POWERPC_ALL;
#else
eh.cputype = CPU_TYPE_I386; eh.cputype = CPU_TYPE_I386;
/* /*
* Support any kind x86. Should we be more specific? We need at * Support any kind x86. Should we be more specific? We need at
...@@ -139,6 +142,7 @@ write_mach_o_header(int fd) ...@@ -139,6 +142,7 @@ write_mach_o_header(int fd)
* Pentium 4? * Pentium 4?
*/ */
eh.cpusubtype = CPU_SUBTYPE_I386_ALL; eh.cpusubtype = CPU_SUBTYPE_I386_ALL;
#endif
eh.filetype = MH_OBJECT; eh.filetype = MH_OBJECT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment