delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/23/08:13:18

From: mike AT sni DOT ca (Mike Stephenson)
Subject: Apparent DLL loader problems.
23 Jan 1997 08:13:18 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199701231325.FAA11360.cygnus.gnu-win32@mail.dms.sni.ca>
Reply-To: mike AT sni DOT ca
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com (GNU Win32 Mailing list)
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I have a problem...
 
        No, I actually have a *big* problem - specifically a problem when
linking very large programs.
 
        First of all, for historical reasons, I'm unfortunately still using
B14.  One of my hopes is that someone can tell me if B17.1 will solve the
problem.  I'm also mixing a set of statically linked gcc .a libraries with
dlltool extractions of both system dlls and my own MSVC 4.1 built dlls.
 
        From the debugger output, it looks like the indirection table
used by some of the system calls (e.g. lstat, setjmp) are not being
properly initialized when cygwin.dll is loaded.  They seem to be retaining
data  that they had on program start (probably the relative address of the
routines inside the dlls, but I don't know).
 
        The exact point at which the program dies changes, depending on the
order of linkage of the exact same modules.  For example, if you link with
one order, setjmp fails by jumping out to an invalid address, relink in a
different order and lstat does the same thing.
 
        Has anyone else seen this problem?  Can it be fixed in B17.1, or
am I treading in unexplored territory here?
 
        Also, can anyone tell me if this is a problem on the NT side, or
as I currently expect, a problem on the Cygnus side after the DLL has been
loaded into memory.
 
                                Thanks in advance...
 
                                        Mike Stephenson

Mail:	Siemens Nixdorf 		Phone:	(905) 819-5944
	Document Management Systems	FAX:	      819-5949
	2185 Derry Rd. West
	Mississauga, Ontario
	Canada   M3C 3L8		INTERNET:     mike AT sni DOT ca
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019