mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Introduce AddDllDirectory()
This commit is contained in:
parent
32b97f2d25
commit
2c9d2943d6
3 changed files with 23 additions and 1 deletions
20
libc/nt/kernel32/AddDllDirectory.S
Normal file
20
libc/nt/kernel32/AddDllDirectory.S
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_AddDllDirectory,AddDllDirectory
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
AddDllDirectory:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_AddDllDirectory(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn AddDllDirectory,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue