mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +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
8
tool/build/elf2pe.h
Normal file
8
tool/build/elf2pe.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_TOOL_BUILD_ELF2PE_H_
|
||||
#define COSMOPOLITAN_TOOL_BUILD_ELF2PE_H_
|
||||
|
||||
#define __dll_import(DLL, RET, FUNC, ARGS) \
|
||||
extern RET(*const __attribute__((__ms_abi__, __weak__)) FUNC) \
|
||||
ARGS __asm__("\"dll$" DLL "$" #FUNC "\"")
|
||||
|
||||
#endif /* COSMOPOLITAN_TOOL_BUILD_ELF2PE_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue