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
300 B
ArmAsm
17 lines
300 B
ArmAsm
#include "libc/macros.internal.h"
|
|
.text.unlikely
|
|
|
|
enopkg:
|
|
#ifdef __x86_64__
|
|
.leafprologue
|
|
.profilable
|
|
mov ENOPKG(%rip),%ecx
|
|
jmp __errfun
|
|
#elif defined(__aarch64__)
|
|
adrp x1,ENOPKG
|
|
ldrsw x0,[x1,#:lo12:ENOPKG]
|
|
b __errfun
|
|
#else
|
|
#error "unsupported architecture"
|
|
#endif
|
|
.endfn enopkg,globl,hidden
|