3 ms·
Based on a quick check of the disassembly, _exit is dynamically linked. It appears that because of that dynamic linkage, there's some information stored for dyl
by ziml77 5y ago
Based on a quick check of the disassembly, _exit is dynamically linked. It appears that because of that dynamic linkage, there's some information stored for dyld to use. That data seems to be split across a few sections which are loaded with padding.
It's also a fat binary. It contains both an X64 and AArch64 version.
- ziml77 5y agoI should add that it really is doing nothing other than calling exit: EntryPoint: push rbp mov rbp, rsp xor edi, edi call imp___stubs__exit imp___stubs__exit: jmp qword [_exit_ptr]