4 ms·
On macos, /usr/bin/true is 118K, not counted the linked shared libSystem.dylib. I wonder what did they put in there? Doesn't seem to have --version or any GNU b
by smsm42 5y ago
On macos, /usr/bin/true is 118K, not counted the linked shared libSystem.dylib. I wonder what did they put in there? Doesn't seem to have --version or any GNU bells and whistles of that nature.
- xxpor 5y agoHow big is a basic hello world compiled with -O3?
- ziml77 5y agoBased 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]