3 ms·
> Mach-O does more than ELF, and enables the two-layer namespacing that makes macOS able to manage dynamic linking dependencies better than ELF. I've always ad
by yjftsjthsd-h 26d ago
> Mach-O does more than ELF, and enables the two-layer namespacing that makes macOS able to manage dynamic linking dependencies better than ELF.
I've always admired that mach-o supports fat binaries.
- mike_hearn 25d agoIt's more that Darwin does. A fat binary is just two independent Mach-O binaries concatenated with a small header.
- yjftsjthsd-h 25d agoMaybe, but ELF doesn't support doing so
- kevans91 25d agoOne might be interested in the not-very-alive FatELF implementation, though: https://icculus.org/fatelf/ https://icculus.org/fatelf/
- yjftsjthsd-h 25d agoYep, that sounds like the same idea: > The format is very simple: it adds some accounting info at the start of the file, and then appends all the ELF binaries after it, adding padding for alignment. The end of the file isn't touched, so you can still do things like self-extracting .zip files for multiple architectures with FatELF. But I would indeed call it very-not-alive; their demo image is Ubuntu 9.04