mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
9f8e6c10dd
Rosetta doesn't correctly respect the startup registers as defined in LC_UNIXTHREAD which makes platform detection go awry. But at least Rosetta appears to consistently set rbx to 0x00000000ffffffff and rdx to 0x0000000000000001 at startup for every x64 executable I could get my hands on. So we use that to detect Rosetta's presence and set up the correct registers for XNU. |
||
---|---|---|
.. | ||
ape.lds | ||
ape.mk | ||
ape.S | ||
apeinstall.sh | ||
config.h | ||
idata.internal.h | ||
loader-elf.S | ||
loader-macho.lds | ||
loader-macho.S | ||
loader.c | ||
loader.h | ||
loader.lds | ||
macros.internal.h | ||
mz.ansi | ||
notice.inc | ||
relocations.h |