Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <001f01c0f0e6$72b8ec80$0200a8c0@lifelesswks> From: "Robert Collins" To: Subject: dll base address Date: Sat, 9 Jun 2001 23:16:51 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 09 Jun 2001 13:07:43.0194 (UTC) FILETIME=[2B5B13A0:01C0F0E5] I haven't fixed the problem I reported with Paul Solovoskys patched ld, but I have a lead... it seems to be that cygwin1.dll is loaded after a dll that I was linking to, and that cygwin1.dll is getting relocated : (gdb) info dll DLL Name Load Address f:/src/ldt/auto-import-sample/dll.dll 610c1000 e:/cygwin/bin/cygwin1.dll 02561000 e:/winnt/system32/kernel32.dll 77e81000 e:/winnt/system32/advapi32.dll 77db1000 e:/winnt/system32/rpcrt4.dll 77d41000 (gdb) print __cygwin_user_data Cannot access memory at address 0x610933a0 As you can see, cygwin1.dll has been loaded at 02561000. It seems to me that if __cygwin_user_data is a non-relocatble variable, that we should mark cygwin1.dll as non-relocatable. Thoughts?