Proper support for digging through the Mach-O load-command table Uses kernel_read() to carefully iterate through all the Mach-O load commands and logs their properties to the dmesg buffer. Partial support is also present for VM setup, but it's lacking a necessary symbol export on PowerPC (arch_pick_mmap_layout). The process currently receives a SIGKILL after reading through all the load commands; pending completion of the memory-mapping and setup code. Signed-off-by: Kyle Moffett <mrmacman_g4@mac.com> --- fs/mach-o/binfmt.c | 258 +++++++++++++++++++++++---------- fs/mach-o/cpus.h | 49 ++++--- fs/mach-o/files.h | 67 +++++---- fs/mach-o/loadcmds.h | 389 ++++++++++++++++++++++++++++++++++++++++++ ++++++++ 4 files changed, 640 insertions(+), 123 deletions(-)
