Get LIBC_RUNTIME and LIBC_CALLS building on aarch64

This commit is contained in:
Justine Tunney 2023-05-09 01:56:56 -07:00
parent 7e46645193
commit e5e3cdf447
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
1200 changed files with 5341 additions and 3677 deletions

View file

@ -18,13 +18,16 @@
*/
#include "ape/macros.internal.h"
.real
.code16 # .code32 .code64
// Most basic tier of program self-termination.
//
// @mode long,legacy,real
abort: push %bp
mov %sp,%bp
rlcall __panic
int3
abort:
#ifdef __x86_64__
ud2
#elif defined(__aarch64__)
brk #1000
#else
#error "architecture unsupported"
#endif
.endfn abort,weak