#asahi-re · 2021-01-11 17:02
davidrysk[m]Shiz: yes, but does it use kernelcache for configure-boot --custom-boot-object? the documentation for that specifically states that you use that to load a mach-o#asahi-re · 2021-01-11 17:01
Shizdavidrysk[m]: kmutil also uses kernelcache at other points iirc#asahi-re · 2021-01-11 17:01
davidrysk[m]without the configure-boot option in kmutil we can't test :)#asahi-re · 2021-01-11 17:01
marcanunlikely, if that's not how XNU loads#asahi-re · 2021-01-11 17:01
davidrysk[m]question I have: will iBoot load a mach-o that has an LC_MAIN pointing to the entry point?#asahi-re · 2021-01-11 17:00
marcanhttps://twitter.com/comex/status/1328800304318603265/photo/1#asahi-re · 2021-01-11 17:00
marcanyes, kmutil does the asn.1 bit#asahi-re · 2021-01-11 16:59
davidrysk[m]the mach-of file for the kernel is at /System/Library/Kernels and doesn't look wrapped in an asn.1 to me#asahi-re · 2021-01-11 16:59
davidrysk[m]my point though: kmutil is probably what wraps it into an asn.1#asahi-re · 2021-01-11 16:58
marcanthey prelink all the boot kexts into a single kernel#asahi-re · 2021-01-11 16:58
davidrysk[m]but isn't clear whether that's just for kexts#asahi-re · 2021-01-11 16:58
marcananyway, it's just a mach-o#asahi-re · 2021-01-11 16:58
marcanyeah, I guess that's a better name for it#asahi-re · 2021-01-11 16:57
davidrysk[m]the manpage for kmutil uses the term "boot kext collection"#asahi-re · 2021-01-11 16:57
marcanah :)#asahi-re · 2021-01-11 16:57
davidrysk[m](about you being tired lol)#asahi-re · 2021-01-11 16:57
marcan:(?#asahi-re · 2021-01-11 16:57
davidrysk[m]:(#asahi-re · 2021-01-11 16:57
marcandavidrysk[m]: kernelcache is what it is called#asahi-re · 2021-01-11 16:57
marcanI must be tired already#asahi-re · 2021-01-11 16:56
marcan/usr/bin/header lol, where did that come from#asahi-re · 2021-01-11 16:56
davidrysk[m]marcan: are you looking at the kernel or the kernelcollection?#asahi-re · 2021-01-11 16:56
marcanhttps://mrcn.st/p/5SrEyT0o some subset of mach-o parsed with Construct#asahi-re · 2021-01-11 16:56
davidrysk[m]too basic :)#asahi-re · 2021-01-11 16:55
davidrysk[m]https://github.com/corkami/pics/tree/master/binary/macho101#asahi-re · 2021-01-11 16:55
marcanoh that would've been helpful about 3 hours ago#asahi-re · 2021-01-11 16:55
davidrysk[m]uh I know corkami made a poster for mach-o#asahi-re · 2021-01-11 16:55
marcanah#asahi-re · 2021-01-11 16:55
davidrysk[m]no, it uses LC_MAIN#asahi-re · 2021-01-11 16:55
JTLdavidrysk[m]: I've never studied Mach-O, tell me more :p#asahi-re · 2021-01-11 16:54
marcanreally?#asahi-re · 2021-01-11 16:54
davidrysk[m]that's not how a typical (userspace) mach-o encodes its entry point#asahi-re · 2021-01-11 16:54
davidrysk[m]https://twitter.com/marcan42/status/1348668351019565056#asahi-re · 2021-01-11 16:46
marcan(and why I added that warning to our RE policy)#asahi-re · 2021-01-11 16:46
davidrysk[m]yeah#asahi-re · 2021-01-11 16:46
marcandifferent standards#asahi-re · 2021-01-11 16:46
marcanthere's a reason I'm staying away from PongoOS#asahi-re · 2021-01-11 16:45
davidrysk[m]https://crna.cc/b/4? -- kinda interesting#asahi-re · 2021-01-11 16:44
Shizmach-O ain't fun#asahi-re · 2021-01-11 16:44
Shizyikes#asahi-re · 2021-01-11 16:39
davidrysk[m]oop, PongoOS directly includes APSL-licensed Apple headers :(#asahi-re · 2021-01-11 16:37
davidrysk[m]wonders if PongoOS has done some of this work already#asahi-re · 2021-01-11 16:33
marcan*I'll#asahi-re · 2021-01-11 16:33
marcanthen I can just build with a normal ELF tolchain and objcopy -O binary to get a mach-o#asahi-re · 2021-01-11 16:33
marcanI'm probably do a trick I've used in the past, of building the mach-o structures inside the memory image in a linker script#asahi-re · 2021-01-11 16:31
marcan(not the code)#asahi-re · 2021-01-11 16:31
marcandavidrysk[m]: just the mach-o structures, to see what I should be feeding iBoot#asahi-re · 2021-01-11 16:30
davidrysk[m]marcan: https://twitter.com/marcan42/status/1348668349404782592 -- are you looking at the built t8101 kernel?#asahi-re · 2021-01-10 03:57
davidrysk[m]the IOKit documentation from the PPC Mac OS X era talks about it: https://developer.apple.com/library/archive/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/DataMgmt/DataMgmt.html#asahi-re · 2021-01-10 03:54
marcanGART is Graphics Address Remapping Table