delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/05/17:20:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B1ADCAE.9000104@cs.umass.edu>
Date: Sat, 05 Dec 2009 17:20:30 -0500
From: Eliot Moss <moss AT cs DOT umass DOT edu>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Ed Gaines <egaines AT nc DOT rr DOT com>
CC: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Confusion re: use of rebaseall vs. rebase to relieve BitDefender woes REDUX
References: <4B18F846 DOT 60300 AT cs DOT umass DOT edu> <4B196F53 DOT 6010603 AT nc DOT rr DOT com> <4B198B26 DOT 2030601 AT nc DOT rr DOT com> <4B1992A5 DOT 6000500 AT cs DOT umass DOT edu> <4B19A995 DOT 7060405 AT nc DOT rr DOT com> <4B19D7CA DOT 2050804 AT cs DOT umass DOT edu> <4B1AB37B DOT 70003 AT nc DOT rr DOT com>
In-Reply-To: <4B1AB37B.70003@nc.rr.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ok, I was wrong about ash (not) using cygwin1.dll.

Running ldd on rebase and peflags reveals that they use it
too, which pretty much says that they are cygwin apps.

However, it also shows that the preferred load address, on
my system anyway, for cygwin1.dll is 0x61000000. That
explains the starting point for my -d rebasing -- to go
below cygwin1.dll.

cygwin1.dll has its base set when it is built. There may be
some way to rebase it, but I don't know what it is, though I
expect that there is a Windows tools for doing it if it
matters.

It was not necessary for me.

Checking my scripts, I eliminate cygwin1.dll from the list of
dlls, and ash.exe and peflags.exe from the list of exes. Could
probably remove rebase.exe as well, but it did not seem to
matter.

It *is* important that ash does *not* load some other big
dlls related to C libraries, which bash tends to want.
These in particular:

  cygintl-8.dll => /usr/bin/cygintl-8.dll (0x58f70000)
  cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x59060000)
  cygreadline7.dll => /usr/bin/cygreadline7.dll (0x57320000)
  cygncurses-9.dll => /usr/bin/cygncurses-9.dll (0x6db80000)
  cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x5c1e0000)

(Part of the output from ldd /bin/bash.)

Hope there's something here that helps ... Eliot

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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