delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/18/14:36:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C938040.3080704@cwilson.fastmail.fm>
References: <AANLkTimP2TqucKt075ZyfTOMzEByUEUboBTz5V-SVEwX AT mail DOT gmail DOT com> <AANLkTi=uFBTQkY6BP03PO2+wsBeOVDitF0CNyLBDj-3C AT mail DOT gmail DOT com> <4C938040 DOT 3080704 AT cwilson DOT fastmail DOT fm>
Date: Sat, 18 Sep 2010 20:36:28 +0200
Message-ID: <AANLkTi=ONi+XPUx9z3K2yEVq_28QP+yV1Y2sue3vH7w2@mail.gmail.com>
Subject: Re: simplifying rebaseall
From: Al <oss DOT elmar AT googlemail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

>> A second thought. I wonder if reabaseall could be improved to run from
>> within bash, without the need to close down all running windows. Then
>> it could even be included into build scripts to be run after each
>> build.
>
> No, because the DLLs used by bash are OFTEN the ones that actually DO
> need to be rebased (because they are used by darn near everything, so we
> need to ensure that their image base does not conflict with anything
> else): libintl, libiconv, libncurses, ...
>

What I suggest isn't that usefull when you think to base all
DLL that have been installed by setup.exe. It becomes usefull in the
moment the user starts to compile his own DLL especially if he used
scripts to control compilation. To compile somethng is a typical use
of cygwin.

I try to be more precise. Let's call it rebaseplus, but it's
code is to 80% similar to rebaseall and duplication of code has known
disadvantages.

Once rebaseall has been run from ash we can be sure the listed DLLs
have sane addresses and bash does work. Now rebaseplus can be run from
within bash (and scripts) using a user contributed list of DLL (-T-option).
It would base the user contributed DLL into a different address space than
rebaseall does.

Al

--
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