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

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_BitBlt,BitBlt,1034
#ifdef __x86_64__
.text.windows
BitBlt:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_BitBlt(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn BitBlt,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_ChoosePixelFormat,ChoosePixelFormat,1040
#ifdef __x86_64__
.text.windows
ChoosePixelFormat:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ChoosePixelFormat(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn ChoosePixelFormat,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateBitmap,CreateBitmap,1056
#ifdef __x86_64__
.text.windows
CreateBitmap:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateBitmap(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateBitmap,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateCompatibleBitmap,CreateCompatibleBitmap,1063
#ifdef __x86_64__
.text.windows
CreateCompatibleBitmap:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateCompatibleBitmap(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateCompatibleBitmap,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateCompatibleDC,CreateCompatibleDC,1064
#ifdef __x86_64__
.text.windows
CreateCompatibleDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ CreateCompatibleDC:
sub $32,%rsp
call *__imp_CreateCompatibleDC(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn CreateCompatibleDC,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateDIBSection,CreateDIBSection,1069
#ifdef __x86_64__
.text.windows
CreateDIBSection:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateDIBSection(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateDIBSection,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateRectRgn,CreateRectRgn,1097
#ifdef __x86_64__
.text.windows
CreateRectRgn:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateRectRgn(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateRectRgn,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_DeleteDC,DeleteDC,1384
#ifdef __x86_64__
.text.windows
DeleteDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeleteDC:
sub $32,%rsp
call *__imp_DeleteDC(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeleteDC,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_DeleteObject,DeleteObject,1387
#ifdef __x86_64__
.text.windows
DeleteObject:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeleteObject:
sub $32,%rsp
call *__imp_DeleteObject(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeleteObject,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_GetPixel,GetPixel,1691
#ifdef __x86_64__
.text.windows
GetPixel:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetPixel(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetPixel,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_RestoreDC,RestoreDC,1808
#ifdef __x86_64__
.text.windows
RestoreDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RestoreDC(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RestoreDC,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SaveDC,SaveDC,1815
#ifdef __x86_64__
.text.windows
SaveDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ SaveDC:
sub $32,%rsp
call *__imp_SaveDC(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn SaveDC,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SelectObject,SelectObject,1864
#ifdef __x86_64__
.text.windows
SelectObject:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SelectObject(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SelectObject,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetBkMode,SetBkMode,1872
#ifdef __x86_64__
.text.windows
SetBkMode:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetBkMode(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetBkMode,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetPixel,SetPixel,1901
#ifdef __x86_64__
.text.windows
SetPixel:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetPixel(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetPixel,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetPixelFormat,SetPixelFormat,1902
#ifdef __x86_64__
.text.windows
SetPixelFormat:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetPixelFormat(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetPixelFormat,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetTextAlign,SetTextAlign,1910
#ifdef __x86_64__
.text.windows
SetTextAlign:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetTextAlign(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetTextAlign,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetTextColor,SetTextColor,1912
#ifdef __x86_64__
.text.windows
SetTextColor:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetTextColor(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetTextColor,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetTextJustification,SetTextJustification,1913
#ifdef __x86_64__
.text.windows
SetTextJustification:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetTextJustification(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetTextJustification,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SwapBuffers,SwapBuffers,1929
#ifdef __x86_64__
.text.windows
SwapBuffers:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ SwapBuffers:
sub $32,%rsp
call *__imp_SwapBuffers(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn SwapBuffers,globl
.previous
#endif