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:
Justine Tunney 2023-05-18 19:05:08 -07:00
parent b852650c08
commit 1422e96b4e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
757 changed files with 2988 additions and 1321 deletions

View file

@ -9,7 +9,7 @@ e2big:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,E2BIG
ldr w0,[x1,#:lo12:E2BIG]
ldrsw x0,[x1,#:lo12:E2BIG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eacces:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EACCES
ldr w0,[x1,#:lo12:EACCES]
ldrsw x0,[x1,#:lo12:EACCES]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eaddrinuse:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EADDRINUSE
ldr w0,[x1,#:lo12:EADDRINUSE]
ldrsw x0,[x1,#:lo12:EADDRINUSE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eaddrnotavail:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EADDRNOTAVAIL
ldr w0,[x1,#:lo12:EADDRNOTAVAIL]
ldrsw x0,[x1,#:lo12:EADDRNOTAVAIL]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eadv:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EADV
ldr w0,[x1,#:lo12:EADV]
ldrsw x0,[x1,#:lo12:EADV]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eafnosupport:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EAFNOSUPPORT
ldr w0,[x1,#:lo12:EAFNOSUPPORT]
ldrsw x0,[x1,#:lo12:EAFNOSUPPORT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eagain:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EAGAIN
ldr w0,[x1,#:lo12:EAGAIN]
ldrsw x0,[x1,#:lo12:EAGAIN]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ealready:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EALREADY
ldr w0,[x1,#:lo12:EALREADY]
ldrsw x0,[x1,#:lo12:EALREADY]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebade:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADE
ldr w0,[x1,#:lo12:EBADE]
ldrsw x0,[x1,#:lo12:EBADE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebadf:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADF
ldr w0,[x1,#:lo12:EBADF]
ldrsw x0,[x1,#:lo12:EBADF]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebadfd:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADFD
ldr w0,[x1,#:lo12:EBADFD]
ldrsw x0,[x1,#:lo12:EBADFD]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebadmsg:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADMSG
ldr w0,[x1,#:lo12:EBADMSG]
ldrsw x0,[x1,#:lo12:EBADMSG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebadr:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADR
ldr w0,[x1,#:lo12:EBADR]
ldrsw x0,[x1,#:lo12:EBADR]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebadrqc:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADRQC
ldr w0,[x1,#:lo12:EBADRQC]
ldrsw x0,[x1,#:lo12:EBADRQC]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebadslt:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBADSLT
ldr w0,[x1,#:lo12:EBADSLT]
ldrsw x0,[x1,#:lo12:EBADSLT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ebusy:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EBUSY
ldr w0,[x1,#:lo12:EBUSY]
ldrsw x0,[x1,#:lo12:EBUSY]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ecanceled:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECANCELED
ldr w0,[x1,#:lo12:ECANCELED]
ldrsw x0,[x1,#:lo12:ECANCELED]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ echild:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECHILD
ldr w0,[x1,#:lo12:ECHILD]
ldrsw x0,[x1,#:lo12:ECHILD]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ echrng:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECHRNG
ldr w0,[x1,#:lo12:ECHRNG]
ldrsw x0,[x1,#:lo12:ECHRNG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ecomm:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECOMM
ldr w0,[x1,#:lo12:ECOMM]
ldrsw x0,[x1,#:lo12:ECOMM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ econnaborted:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECONNABORTED
ldr w0,[x1,#:lo12:ECONNABORTED]
ldrsw x0,[x1,#:lo12:ECONNABORTED]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ econnrefused:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECONNREFUSED
ldr w0,[x1,#:lo12:ECONNREFUSED]
ldrsw x0,[x1,#:lo12:ECONNREFUSED]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ econnreset:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ECONNRESET
ldr w0,[x1,#:lo12:ECONNRESET]
ldrsw x0,[x1,#:lo12:ECONNRESET]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ edeadlk:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EDEADLK
ldr w0,[x1,#:lo12:EDEADLK]
ldrsw x0,[x1,#:lo12:EDEADLK]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ edestaddrreq:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EDESTADDRREQ
ldr w0,[x1,#:lo12:EDESTADDRREQ]
ldrsw x0,[x1,#:lo12:EDESTADDRREQ]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ edom:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EDOM
ldr w0,[x1,#:lo12:EDOM]
ldrsw x0,[x1,#:lo12:EDOM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ edotdot:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EDOTDOT
ldr w0,[x1,#:lo12:EDOTDOT]
ldrsw x0,[x1,#:lo12:EDOTDOT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ edquot:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EDQUOT
ldr w0,[x1,#:lo12:EDQUOT]
ldrsw x0,[x1,#:lo12:EDQUOT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eexist:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EEXIST
ldr w0,[x1,#:lo12:EEXIST]
ldrsw x0,[x1,#:lo12:EEXIST]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ efault:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EFAULT
ldr w0,[x1,#:lo12:EFAULT]
ldrsw x0,[x1,#:lo12:EFAULT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ efbig:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EFBIG
ldr w0,[x1,#:lo12:EFBIG]
ldrsw x0,[x1,#:lo12:EFBIG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ehostdown:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EHOSTDOWN
ldr w0,[x1,#:lo12:EHOSTDOWN]
ldrsw x0,[x1,#:lo12:EHOSTDOWN]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ehostunreach:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EHOSTUNREACH
ldr w0,[x1,#:lo12:EHOSTUNREACH]
ldrsw x0,[x1,#:lo12:EHOSTUNREACH]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ehwpoison:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EHWPOISON
ldr w0,[x1,#:lo12:EHWPOISON]
ldrsw x0,[x1,#:lo12:EHWPOISON]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eidrm:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EIDRM
ldr w0,[x1,#:lo12:EIDRM]
ldrsw x0,[x1,#:lo12:EIDRM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eilseq:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EILSEQ
ldr w0,[x1,#:lo12:EILSEQ]
ldrsw x0,[x1,#:lo12:EILSEQ]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ einprogress:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EINPROGRESS
ldr w0,[x1,#:lo12:EINPROGRESS]
ldrsw x0,[x1,#:lo12:EINPROGRESS]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eintr:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EINTR
ldr w0,[x1,#:lo12:EINTR]
ldrsw x0,[x1,#:lo12:EINTR]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ einval:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EINVAL
ldr w0,[x1,#:lo12:EINVAL]
ldrsw x0,[x1,#:lo12:EINVAL]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eio:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EIO
ldr w0,[x1,#:lo12:EIO]
ldrsw x0,[x1,#:lo12:EIO]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eisconn:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EISCONN
ldr w0,[x1,#:lo12:EISCONN]
ldrsw x0,[x1,#:lo12:EISCONN]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eisdir:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EISDIR
ldr w0,[x1,#:lo12:EISDIR]
ldrsw x0,[x1,#:lo12:EISDIR]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eisnam:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EISNAM
ldr w0,[x1,#:lo12:EISNAM]
ldrsw x0,[x1,#:lo12:EISNAM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ekeyexpired:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EKEYEXPIRED
ldr w0,[x1,#:lo12:EKEYEXPIRED]
ldrsw x0,[x1,#:lo12:EKEYEXPIRED]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ekeyrejected:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EKEYREJECTED
ldr w0,[x1,#:lo12:EKEYREJECTED]
ldrsw x0,[x1,#:lo12:EKEYREJECTED]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ ekeyrevoked:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EKEYREVOKED
ldr w0,[x1,#:lo12:EKEYREVOKED]
ldrsw x0,[x1,#:lo12:EKEYREVOKED]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ el2hlt:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EL2HLT
ldr w0,[x1,#:lo12:EL2HLT]
ldrsw x0,[x1,#:lo12:EL2HLT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ el2nsync:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EL2NSYNC
ldr w0,[x1,#:lo12:EL2NSYNC]
ldrsw x0,[x1,#:lo12:EL2NSYNC]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ el3hlt:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EL3HLT
ldr w0,[x1,#:lo12:EL3HLT]
ldrsw x0,[x1,#:lo12:EL3HLT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ el3rst:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EL3RST
ldr w0,[x1,#:lo12:EL3RST]
ldrsw x0,[x1,#:lo12:EL3RST]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ elibacc:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELIBACC
ldr w0,[x1,#:lo12:ELIBACC]
ldrsw x0,[x1,#:lo12:ELIBACC]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ elibbad:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELIBBAD
ldr w0,[x1,#:lo12:ELIBBAD]
ldrsw x0,[x1,#:lo12:ELIBBAD]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ elibexec:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELIBEXEC
ldr w0,[x1,#:lo12:ELIBEXEC]
ldrsw x0,[x1,#:lo12:ELIBEXEC]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ elibmax:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELIBMAX
ldr w0,[x1,#:lo12:ELIBMAX]
ldrsw x0,[x1,#:lo12:ELIBMAX]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ elibscn:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELIBSCN
ldr w0,[x1,#:lo12:ELIBSCN]
ldrsw x0,[x1,#:lo12:ELIBSCN]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ elnrng:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELNRNG
ldr w0,[x1,#:lo12:ELNRNG]
ldrsw x0,[x1,#:lo12:ELNRNG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eloop:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ELOOP
ldr w0,[x1,#:lo12:ELOOP]
ldrsw x0,[x1,#:lo12:ELOOP]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ emediumtype:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EMEDIUMTYPE
ldr w0,[x1,#:lo12:EMEDIUMTYPE]
ldrsw x0,[x1,#:lo12:EMEDIUMTYPE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ emfile:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EMFILE
ldr w0,[x1,#:lo12:EMFILE]
ldrsw x0,[x1,#:lo12:EMFILE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ emlink:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EMLINK
ldr w0,[x1,#:lo12:EMLINK]
ldrsw x0,[x1,#:lo12:EMLINK]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ emsgsize:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EMSGSIZE
ldr w0,[x1,#:lo12:EMSGSIZE]
ldrsw x0,[x1,#:lo12:EMSGSIZE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ emultihop:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EMULTIHOP
ldr w0,[x1,#:lo12:EMULTIHOP]
ldrsw x0,[x1,#:lo12:EMULTIHOP]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enametoolong:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENAMETOOLONG
ldr w0,[x1,#:lo12:ENAMETOOLONG]
ldrsw x0,[x1,#:lo12:ENAMETOOLONG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enavail:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENAVAIL
ldr w0,[x1,#:lo12:ENAVAIL]
ldrsw x0,[x1,#:lo12:ENAVAIL]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enetdown:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENETDOWN
ldr w0,[x1,#:lo12:ENETDOWN]
ldrsw x0,[x1,#:lo12:ENETDOWN]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enetreset:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENETRESET
ldr w0,[x1,#:lo12:ENETRESET]
ldrsw x0,[x1,#:lo12:ENETRESET]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enetunreach:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENETUNREACH
ldr w0,[x1,#:lo12:ENETUNREACH]
ldrsw x0,[x1,#:lo12:ENETUNREACH]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enfile:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENFILE
ldr w0,[x1,#:lo12:ENFILE]
ldrsw x0,[x1,#:lo12:ENFILE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enoano:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOANO
ldr w0,[x1,#:lo12:ENOANO]
ldrsw x0,[x1,#:lo12:ENOANO]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enobufs:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOBUFS
ldr w0,[x1,#:lo12:ENOBUFS]
ldrsw x0,[x1,#:lo12:ENOBUFS]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enocsi:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOCSI
ldr w0,[x1,#:lo12:ENOCSI]
ldrsw x0,[x1,#:lo12:ENOCSI]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enodata:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENODATA
ldr w0,[x1,#:lo12:ENODATA]
ldrsw x0,[x1,#:lo12:ENODATA]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enodev:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENODEV
ldr w0,[x1,#:lo12:ENODEV]
ldrsw x0,[x1,#:lo12:ENODEV]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enoent:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOENT
ldr w0,[x1,#:lo12:ENOENT]
ldrsw x0,[x1,#:lo12:ENOENT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enoexec:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOEXEC
ldr w0,[x1,#:lo12:ENOEXEC]
ldrsw x0,[x1,#:lo12:ENOEXEC]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enokey:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOKEY
ldr w0,[x1,#:lo12:ENOKEY]
ldrsw x0,[x1,#:lo12:ENOKEY]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enolck:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOLCK
ldr w0,[x1,#:lo12:ENOLCK]
ldrsw x0,[x1,#:lo12:ENOLCK]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enolink:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOLINK
ldr w0,[x1,#:lo12:ENOLINK]
ldrsw x0,[x1,#:lo12:ENOLINK]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enomedium:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOMEDIUM
ldr w0,[x1,#:lo12:ENOMEDIUM]
ldrsw x0,[x1,#:lo12:ENOMEDIUM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enomem:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOMEM
ldr w0,[x1,#:lo12:ENOMEM]
ldrsw x0,[x1,#:lo12:ENOMEM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enomsg:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOMSG
ldr w0,[x1,#:lo12:ENOMSG]
ldrsw x0,[x1,#:lo12:ENOMSG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enonet:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENONET
ldr w0,[x1,#:lo12:ENONET]
ldrsw x0,[x1,#:lo12:ENONET]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enopkg:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOPKG
ldr w0,[x1,#:lo12:ENOPKG]
ldrsw x0,[x1,#:lo12:ENOPKG]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enoprotoopt:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOPROTOOPT
ldr w0,[x1,#:lo12:ENOPROTOOPT]
ldrsw x0,[x1,#:lo12:ENOPROTOOPT]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enospc:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOSPC
ldr w0,[x1,#:lo12:ENOSPC]
ldrsw x0,[x1,#:lo12:ENOSPC]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enosr:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOSR
ldr w0,[x1,#:lo12:ENOSR]
ldrsw x0,[x1,#:lo12:ENOSR]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enostr:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOSTR
ldr w0,[x1,#:lo12:ENOSTR]
ldrsw x0,[x1,#:lo12:ENOSTR]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enosys:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOSYS
ldr w0,[x1,#:lo12:ENOSYS]
ldrsw x0,[x1,#:lo12:ENOSYS]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotblk:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTBLK
ldr w0,[x1,#:lo12:ENOTBLK]
ldrsw x0,[x1,#:lo12:ENOTBLK]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotconn:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTCONN
ldr w0,[x1,#:lo12:ENOTCONN]
ldrsw x0,[x1,#:lo12:ENOTCONN]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotdir:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTDIR
ldr w0,[x1,#:lo12:ENOTDIR]
ldrsw x0,[x1,#:lo12:ENOTDIR]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotempty:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTEMPTY
ldr w0,[x1,#:lo12:ENOTEMPTY]
ldrsw x0,[x1,#:lo12:ENOTEMPTY]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotnam:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTNAM
ldr w0,[x1,#:lo12:ENOTNAM]
ldrsw x0,[x1,#:lo12:ENOTNAM]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotrecoverable:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTRECOVERABLE
ldr w0,[x1,#:lo12:ENOTRECOVERABLE]
ldrsw x0,[x1,#:lo12:ENOTRECOVERABLE]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotsock:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTSOCK
ldr w0,[x1,#:lo12:ENOTSOCK]
ldrsw x0,[x1,#:lo12:ENOTSOCK]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotsup:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTSUP
ldr w0,[x1,#:lo12:ENOTSUP]
ldrsw x0,[x1,#:lo12:ENOTSUP]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotty:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTTY
ldr w0,[x1,#:lo12:ENOTTY]
ldrsw x0,[x1,#:lo12:ENOTTY]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enotuniq:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOTUNIQ
ldr w0,[x1,#:lo12:ENOTUNIQ]
ldrsw x0,[x1,#:lo12:ENOTUNIQ]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ enxio:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENXIO
ldr w0,[x1,#:lo12:ENXIO]
ldrsw x0,[x1,#:lo12:ENXIO]
b __errfun
#else
#error "unsupported architecture"

View file

@ -9,7 +9,7 @@ eopnotsupp:
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EOPNOTSUPP
ldr w0,[x1,#:lo12:EOPNOTSUPP]
ldrsw x0,[x1,#:lo12:EOPNOTSUPP]
b __errfun
#else
#error "unsupported architecture"

Some files were not shown because too many files have changed in this diff Show more