diff options
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 1b245f581..5b0416125 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -1,7 +1,7 @@ /* init.cc Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009, 2010, 2011, 2012 Red Hat, Inc. + 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -16,8 +16,8 @@ details. */ static DWORD _my_oldfunc; -static char *search_for = (char *) cygthread::stub; -unsigned threadfunc_ix[8]; +static char *search_for __attribute__((section (".cygwin_dll_common"), shared)) = (char *) cygthread::stub; +unsigned threadfunc_ix[8] __attribute__((section (".cygwin_dll_common"), shared)); static bool dll_finished_loading; #define OLDFUNC_OFFSET -1 @@ -74,6 +74,7 @@ dll_entry (HANDLE h, DWORD reason, void *static_load) switch (reason) { case DLL_PROCESS_ATTACH: + wincap.init (); init_console_handler (false); cygwin_hmodule = (HMODULE) h; |