mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 10:18:31 +00:00
Introduce native support for MacOS ARM64
There's a new program named ape/ape-m1.c which will be used to build an embeddable binary that can load ape and elf executables. The support is mostly working so far, but still chasing down ABI issues.
This commit is contained in:
parent
b852650c08
commit
1422e96b4e
757 changed files with 2988 additions and 1321 deletions
|
@ -58,7 +58,7 @@ struct Buffer {
|
|||
};
|
||||
|
||||
static bool IsCode(uintptr_t p) {
|
||||
return _base <= (uint8_t *)p && (uint8_t *)p < _etext;
|
||||
return __executable_start <= (uint8_t *)p && (uint8_t *)p < _etext;
|
||||
}
|
||||
|
||||
static void Append(struct Buffer *b, const char *fmt, ...) {
|
||||
|
@ -97,8 +97,9 @@ static const char *ColorRegister(int r) {
|
|||
case 25: // saved
|
||||
case 26: // saved
|
||||
case 27: // saved
|
||||
case 28: // saved
|
||||
return MAGENTA;
|
||||
case 18: // platform register
|
||||
case 28: // our tls register
|
||||
case 29: // frame pointer
|
||||
case 30: // return pointer
|
||||
case 31: // stack pointer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue