mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
1422e96b4e
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.
17 lines
305 B
ArmAsm
17 lines
305 B
ArmAsm
#include "libc/macros.internal.h"
|
|
.text.unlikely
|
|
|
|
enolink:
|
|
#ifdef __x86_64__
|
|
.leafprologue
|
|
.profilable
|
|
mov ENOLINK(%rip),%ecx
|
|
jmp __errfun
|
|
#elif defined(__aarch64__)
|
|
adrp x1,ENOLINK
|
|
ldrsw x0,[x1,#:lo12:ENOLINK]
|
|
b __errfun
|
|
#else
|
|
#error "unsupported architecture"
|
|
#endif
|
|
.endfn enolink,globl,hidden
|