Fix Windows 7 support (#19)
This change pays off technical debt with the function -> DLL mappings in libc/nt/master.sh, which was originally defined based on binary analysis on Windows 10. It's now been updated so the kernel32/kernelbase/advapi32 imports should be exactly as they are written, on the MSDN documentation and that wouldn't have been easy without Geoff Chappell's work thank him https://www.geoffchappell.com/studies/windows/win32/index.htm
This commit is contained in:
12
libc/nt/kernel32/VirtualAlloc.s
Normal file
12
libc/nt/kernel32/VirtualAlloc.s
Normal file
@@ -0,0 +1,12 @@
|
||||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_VirtualAlloc,VirtualAlloc,0
|
||||
|
||||
.text.windows
|
||||
VirtualAlloc:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_VirtualAlloc(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn VirtualAlloc,globl
|
||||
.previous
|
||||
Reference in New Issue
Block a user