X-Git-Url: https://git.saurik.com/apple/bootx.git/blobdiff_plain/366defd12be2eb202aa24e420675ae85aae1d5d0..HEAD:/macho-to-xcoff.tproj/macho-to-xcoff.c diff --git a/macho-to-xcoff.tproj/macho-to-xcoff.c b/macho-to-xcoff.tproj/macho-to-xcoff.c index 02e9af5..3ef6cfe 100644 --- a/macho-to-xcoff.tproj/macho-to-xcoff.c +++ b/macho-to-xcoff.tproj/macho-to-xcoff.c @@ -27,6 +27,7 @@ * DRI: Josh de Cesare */ +#define __srr0 srr0 // works with or without conformance #include #include #include @@ -260,7 +261,7 @@ int main (int argc, char **argv) case LC_THREAD: case LC_UNIXTHREAD: - xHead.opt.entryPoint = ((ppc_saved_state_t *) + xHead.opt.entryPoint = ((ppc_thread_state_t *) (cp + sizeof(struct thread_command) + 2 * sizeof(unsigned long)) )->srr0; printf("Entry point %lx\n\n", SWAPL(xHead.opt.entryPoint));