From be2280986de5339bca3d648ec0e7538541dcd674 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 25 Oct 2011 16:35:58 +0000 Subject: * hookapi.cc (hook_or_detect_cygwin): Take additional handle to a file mapping as parameter. If this handle is not NULL, create another file mapping for the IAT. * spawn.cc (av::fixup): Only map the first 64K of an image and keep the mapping handle to use as argument to hook_or_detect_cygwin. * winsup.h (hook_or_detect_cygwin): Add mapping handle as default parameter in declaration. --- winsup/cygwin/winsup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/winsup.h') diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index e865cbc57..a7b828580 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -216,7 +216,7 @@ __ino64_t __stdcall hash_path_name (__ino64_t hash, PCWSTR name) __attribute__ ( __ino64_t __stdcall hash_path_name (__ino64_t hash, const char *name) __attribute__ ((regparm(2))); void __stdcall nofinalslash (const char *src, char *dst) __attribute__ ((regparm(2))); -void *hook_or_detect_cygwin (const char *, const void *, WORD&) __attribute__ ((regparm (3))); +void *hook_or_detect_cygwin (const char *, const void *, WORD&, HANDLE h = NULL) __attribute__ ((regparm (3))); /* Time related */ void __stdcall totimeval (struct timeval *, FILETIME *, int, int); -- cgit v1.2.3