cosmopolitan/libc/crt
Daniil Kulchenko 9f8e6c10dd
Work around Rosetta clobbering startup registers on M1 Macs (issue #429) (#453)
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.
2022-06-27 16:28:59 -07:00
..
crt.mk Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
crt.S Work around Rosetta clobbering startup registers on M1 Macs (issue #429) (#453) 2022-06-27 16:28:59 -07:00