delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/09/09:35:27

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Message-ID: <002b01c0f0e9$07d17e70$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Ralf Habacker" <Ralf DOT Habacker AT saght DOT tessag DOT com>
Cc: <cygwin-developers AT sourceware DOT cygnus DOT com>
References: <000901c0ef4e$904cbe50$6e032bb7 AT BRAMSCHE> <018e01c0ef53$02e833f0$0200a8c0 AT lifelesswks>
Subject: Re: process-startup headache.
Date: Sat, 9 Jun 2001 23:35:20 +1000
MIME-Version: 1.0
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:26:12.0299 (UTC) FILETIME=[C06F11B0:01C0F0E7]

----- Original Message -----
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>


> Hi folk,
>
> A similar-in-appearance problem is occuring with binaries linked by a
> patched ld.exe, (which I just installed tonight, so the first thing is
> not an artifact of that). I'm trying out Paul Solovosky{I hope thats
> right}'s ld-that-auto-imports.
>

This problem is not related to the slow startup problem. The problem is
that the .dll's generated by Paul's ld, have a default base address of
0x610c0000 which collides with cygwin's base addres of 0x61000000.
Cygwin doesn't seem to be relocatable in practice, even though the .dll
is marked as relocatable.

Workaround: To build .dll's with the patched ld that work with cygwin
1.3.2 use -Wl,--image-base=0x10000000 on the gcc commandle line.
(0x10000000 is the default .dll address according to MSDN. [don't
use --dll - --dll creates the 0x610c0000 address that doesn't work).

Long term solution:I think cygwin1.dll should be marked non-relocatable
to prevent .dll's that collide with the cygwin1.dll causing crashes and
unexplained behaviour.

Rob

- Raw text -


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