mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Get LIBC_RUNTIME and LIBC_CALLS building on aarch64
This commit is contained in:
parent
7e46645193
commit
e5e3cdf447
1200 changed files with 5341 additions and 3677 deletions
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_AddIPAddress,AddIPAddress,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
AddIPAddress:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_AddIPAddress(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn AddIPAddress,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_AllocateAndGetTcpExTableFromStack,AllocateAndGetTcpExTableFromStack,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
AllocateAndGetTcpExTableFromStack:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_AllocateAndGetTcpExTableFromStack(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn AllocateAndGetTcpExTableFromStack,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_AllocateAndGetUdpExTableFromStack,AllocateAndGetUdpExTableFromStack,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
AllocateAndGetUdpExTableFromStack:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_AllocateAndGetUdpExTableFromStack(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn AllocateAndGetUdpExTableFromStack,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_CancelIPChangeNotify,CancelIPChangeNotify,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
CancelIPChangeNotify:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ CancelIPChangeNotify:
|
|||
sub $32,%rsp
|
||||
call *__imp_CancelIPChangeNotify(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn CancelIPChangeNotify,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_CaptureInterfaceHardwareCrossTimestamp,CaptureInterfaceHardwareCrossTimestamp,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
CaptureInterfaceHardwareCrossTimestamp:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CaptureInterfaceHardwareCrossTimestamp(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn CaptureInterfaceHardwareCrossTimestamp,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_CreateIpForwardEntry,CreateIpForwardEntry,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
CreateIpForwardEntry:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ CreateIpForwardEntry:
|
|||
sub $32,%rsp
|
||||
call *__imp_CreateIpForwardEntry(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn CreateIpForwardEntry,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_FlushIpNetTable,FlushIpNetTable,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
FlushIpNetTable:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ FlushIpNetTable:
|
|||
sub $32,%rsp
|
||||
call *__imp_FlushIpNetTable(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn FlushIpNetTable,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetAdapterIndex,GetAdapterIndex,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetAdapterIndex:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetAdapterIndex(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetAdapterIndex,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetAdapterOrderMap,GetAdapterOrderMap,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetAdapterOrderMap:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
sub $32,%rsp
|
||||
call *__imp_GetAdapterOrderMap(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn GetAdapterOrderMap,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetAdaptersAddresses,GetAdaptersAddresses,67
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetAdaptersAddresses:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetAdaptersAddresses(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetAdaptersAddresses,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetAdaptersInfo,GetAdaptersInfo,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetAdaptersInfo:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetAdaptersInfo(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetAdaptersInfo,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetBestInterface,GetBestInterface,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetBestInterface:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetBestInterface(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetBestInterface,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetBestInterfaceEx,GetBestInterfaceEx,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetBestInterfaceEx:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetBestInterfaceEx(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetBestInterfaceEx,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetBestRoute,GetBestRoute,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetBestRoute:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetBestRoute(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetBestRoute,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetNumberOfInterfaces,GetNumberOfInterfaces,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetNumberOfInterfaces:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ GetNumberOfInterfaces:
|
|||
sub $32,%rsp
|
||||
call *__imp_GetNumberOfInterfaces(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn GetNumberOfInterfaces,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetTcpTable,GetTcpTable,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetTcpTable:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetTcpTable(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetTcpTable,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp iphlpapi,__imp_GetTcpTable2,GetTcpTable2,0
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
GetTcpTable2:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetTcpTable2(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn GetTcpTable2,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue