Re: Mach-O binary format support and Darwin syscall personality [Was: uts banner changes]

From: Pavel Machek
Date: Sat Dec 16 2006 - 02:50:45 EST


Hi!

> So I guess all I have to do is:
> (A) Write a bunch of new syscall handlers taking
> arguments of the same types as the Darwin syscall
> handlers,
> (B) Figure out how to switch tables depending on the
> "syscall personality" of "current"
> (C) Figure out how to set the "syscall personality"
> of "current" from my Mach-O binary format module.
>
> (A) seems fairly straightforward, if unusually tedious
> and error- prone, but I'm totally in the dark for (B)
> and (C). Any help would be much appreciated.

try strace osx_binary. If syscall interface is similar enough, perhaps
it is possible to do it with ptrace() :-).
Pavel
--
Thanks for all the (sleeping) penguins.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/