mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 13:30:29 +00:00
Introduce new linker for fat ape binaries
This commit is contained in:
parent
e3c456d23a
commit
0105e3e2b6
44 changed files with 3140 additions and 867 deletions
|
@ -32,10 +32,12 @@ kNtWindowsDirectory:
|
|||
|
||||
.init.start 300,_init_kNtWindowsDirectory
|
||||
#if SupportsWindows()
|
||||
testb IsWindows()
|
||||
jz 1f
|
||||
pushpop BYTES,%rdx
|
||||
mov __imp_GetWindowsDirectoryA(%rip),%rax
|
||||
call __getntsyspath
|
||||
#else
|
||||
add $BYTES,%rdi
|
||||
jmp 2f
|
||||
#endif
|
||||
.init.end 300,_init_kNtWindowsDirectory
|
||||
1: add $BYTES,%rdi
|
||||
2: .init.end 300,_init_kNtWindowsDirectory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue