delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/10/21:21:01

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: <02ee01c0f214$e27d63f0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-developers AT cygwin DOT com>
References: <001f01c0f0e6$72b8ec80$0200a8c0 AT lifelesswks> <20010610004015 DOT D29231 AT redhat DOT com> <23114413578 DOT 20010610185633 AT logos-m DOT ru> <20010610120846 DOT B5292 AT redhat DOT com> <027801c0f210$d1e7c5c0$0200a8c0 AT lifelesswks> <20010610211823 DOT A9379 AT redhat DOT com>
Subject: Re: dll base address
Date: Mon, 11 Jun 2001 11:21:46 +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: 11 Jun 2001 01:11:41.0662 (UTC) FILETIME=[791D07E0:01C0F213]

----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin-developers AT cygwin DOT com>
Sent: Monday, June 11, 2001 11:18 AM
Subject: Re: dll base address


> On Mon, Jun 11, 2001 at 10:52:41AM +1000, Robert Collins wrote:
> >----- Original Message -----
> >From: "Christopher Faylor" <cgf AT redhat DOT com>
> >To: <cygwin-developers AT cygwin DOT com>
> >Sent: Monday, June 11, 2001 2:08 AM
> >Subject: Re: dll base address
> >
> >
> >>On Sun, Jun 10, 2001 at 06:56:33PM +0400, egor duda wrote:
> >>>Sunday, 10 June, 2001 Christopher Faylor cgf AT redhat DOT com wrote:
> >>>>>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?
> >>>
> ><snip>
> >>So, the DLL should be relocatable as long as it is consistently
being
> >>relocated to the same location.
> >>
> >>There is a lot more than just vtables that would need to be
addressed
> >>if we were to fix this.
> >
> >So for now, we should mark cygwin1.dll as non-relocatable.  How do we
> >do this for gcc/ld ?  MS LINK uses /FIXED, and I couldn't see a .def
> >instruction for it :[.
>
> For now, I think we should maintain the same practice as we have for
the
> last five years, i.e., we do nothing.
>
> AFAICT, this is all related to Paul Sokolovsky's auto-import patch to
> binutils/ld.  I do remember Paul talking about his techniques but I
> can't say for certain that they were actually submitted to the
binutils
> mailing list.  If they were submitted it was quite some time ago.

It's not related to the auto-import patch at all. It's purely a
relocation thing.

Trivial testcase: build a dll with normal ld witha base address of
0x610c0000. When linking against that .dll have that .dll listed before
cygwin1.dll in the imports section.

Run that program from bash. Watch cpu hit 100%. Run that program from
cmd.exe. Watch it work :].

<snip discussion predicated on incorrect cause of problem>

Rob
> cgf
>
> cgf
>

- Raw text -


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