Now for the complicated part of the OS X port...
I am able to get every file, including vm86.o, op-i386.o, helper-i386.o, etc. to compile (after quite a few code mods that disable certain functionality) except the syscall.c file, but that's because it is made specifically for Linux, and Darwin will need it's own, which is a job in itself. The other files that don't compile are those that include the dyngen-generated includes.
I am wondering if anyone on this list knows much about the Mach-O file format, and would possibly consider writing a dyngen program that will generate the appropriate headers so this thing will compile the rest the way.
If not, Fabrice, do you have any pointers of where I can get a crash course on writing a dyngen program for Mach-O files so I can let it process Darwin's applicable files?
Mainly my objective at this point is to familiarize myself with the code, make it all compile, then actually reimplement my changes in a way that can be integrated into the main branch. So if anyone wonders about the number of commented out items, such as the get_long_only function in vl, it's because OS X doesn't have a version of that.
I have put up an updated tarball on my site:
http://www.raylucke.com/20010926/software/qemu/
Regards,
Ray
Quoted 7 lines · [email protected] wrote:
I am able to get every file, including vm86.o, op-i386.o, helper-i386.o, etc. to compile (after quite a few code mods that disable certain functionality) except the
syscall.cfile, but that's because it is made specifically for Linux, and Darwin will need it's own, which is a job in itself. The other files that don't compile are those that include the dyngen-generated includes.
Quoted 8 lines
I am wondering if anyone on this list knows much about the Mach-O file format, and would possibly consider writing a dyngen program that will generate the appropriate headers so this thing will compile the rest the way.
If not, Fabrice, do you have any pointers of where I can get a crash course on writing a dyngen program for Mach-O files so I can let it process Darwin's applicable files?
The best source of information seems to be the binutils source code (in particular the BFD library patched by Apple). Then it is possible to patch dyngen to support the Mach-O format or to write a Mach-O to ELF object file converter.
Fabrice.
Quoted 16 lines · On Tue, Oct 07, 2003 at 03:29:57AM -0700, [email protected] wrote:
I am able to get every file, including vm86.o, op-i386.o, helper-i386.o, etc. to compile (after quite a few code mods that disable certain functionality) except the
syscall.cfile, but that's because it is made specifically for Linux, and Darwin will need it's own, which is a job in itself. The other files that don't compile are those that include the dyngen-generated includes.I am wondering if anyone on this list knows much about the Mach-O file format, and would possibly consider writing a dyngen program that will generate the appropriate headers so this thing will compile the rest the way.
If not, Fabrice, do you have any pointers of where I can get a crash course on writing a dyngen program for Mach-O files so I can let it process Darwin's applicable files?
Quoted 8 lines
Mainly my objective at this point is to familiarize myself with the code, make it all compile, then actually reimplement my changes in a way that can be integrated into the main branch. So if anyone wonders about the number of commented out items, such as the
get_long_onlyfunction in vl, it's because OS X doesn't have a version of that.I have put up an updated tarball on my site:
http://www.raylucke.com/20010926/software/qemu/
have a look at
http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/MachORuntime.pdf
HTH,
Herbert
Quoted 9 lines
Regards,
Ray
_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel