Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-08-26 19:00:04 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-08-27 15:40:22 +0300
commiteb1584b491384e072c949ecd78ec85de244661fe (patch)
tree007abac2d13028b0963b6b6948d4334afded37eb /winsup
parenta841911ea45272b1333134aa0d8bd9b3860a2c7f (diff)
Revert "Cygwin: autoload: introduce LoadDLLfunc_pfx_only"
This reverts commit 0e711d6cc9b5206335fe8562817b6d5e6cad876e. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/autoload.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index c9ad92530..c8909caff 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -123,33 +123,6 @@ _win32_" #name ": \n\
.asciz \"" #name "\" \n\
.text \n\
");
-
-/* Do not export function "foo" as "foo". Only export it as "_win32_foo".
- That allows to autoload and use a Windows function having the same name
- as a Cygwin function. Namely select. */
-#define LoadDLLfunc_pfx_only(name, dllname) \
- LoadDLLprime (dllname, dll_func_load, 0) \
- __asm__ (" \n\
- .section ." #dllname "_autoload_text,\"wx\" \n\
- .global _win32_" #name " \n\
- .align 16 \n\
-_win32_" #name ": \n\
- movq 3f(%rip),%rax \n\
- jmp *%rax \n\
-1:movq 2f(%rip),%rax \n\
- push %rbp # Keep 16 byte aligned \n\
- push %r9 \n\
- push %r8 \n\
- push %rdx \n\
- push %rcx \n\
- call *(%rax) \n\
-2:.quad ." #dllname "_info \n\
- .hword 0 \n\
- .hword 0 \n\
-3:.quad 1b \n\
- .asciz \"" #name "\" \n\
- .text \n\
-");
#else
#error unimplemented for this target
#endif