www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/01/18/13:56:02

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Fri, 18 Jan 2002 13:59:57 -0500
From: Jason Tishler <jason AT tishler DOT net>
To: cygwin-apps AT cygwin DOT com
Subject: Re: gcc -mno-cygwin STL support for setup.exe?
Message-ID: <20020118185956.GC2312@dothill.com>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
References: <20020118180305 DOT GA2312 AT dothill DOT com> <20020118180632 DOT GA24778 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20020118180632.GA24778@redhat.com>
User-Agent: Mutt/1.3.24i

Chris,

On Fri, Jan 18, 2002 at 01:06:32PM -0500, Christopher Faylor wrote:
> On Fri, Jan 18, 2002 at 01:03:05PM -0500, Jason Tishler wrote:
> >Unfortunately, I'm getting bogged down trying to add the rebase
> >functionality to setup.exe due to the lack of STL.  I am hoping that
> >I will not have to re-implement linked lists and possibly associated
> >arrays too.  I see that Rob has a list class, but I don't think that it
> >will meet all of my needs.
> 
> Weren't you going to rewrite rebase in C?  It is very likely that it
> wouldn't be accepted into binutils otherwise.

Yes, I'm done converting the stand-alone version into C.  I have even
converted it into a Mingw program so that it can rebase the Cygwin DLL
too.

Sorry for not being clear.  What I'm trying to accomplish now is to
integrate something like the following functionality directly into
setup.exe:

    On Sat, Dec 08, 2001 at 01:39:52PM +1100, Robert Collins wrote:
    > Actually what I have in mind is
    > [snip]
    > * changes to setup
    > if (installing a .dll or .exe)
    >   rebase and store info in /etc/setup
    > 
    > rebase:
    > find object size - sz
    >   lookup a gap of sz in the address table in /etc/setup
    > find object dependencies
    >   foreach
    >     if (a cygwin .dll)
    >       rebase this
    >     if (a non-cygwin .dll)
    >       store the base and size info in /etc/setup

The rebase stuff above is easy -- unfortunately, the address table stuff
without STL (i.e., list, map, etc.) is not. :,(

> >About a year ago, there was some discussion about adding libstdc++.a to
> >Cygwin's gcc -mno-cygwin mode.  Can we revisit this issue?
> 
> The biggest issue with relying on libstdc++.a for for setup.exe is that it
> requires this library to be built for cross-compilation.  I have no idea how
> to do that.

I don't know either -- this is why I'm asking for help.

Thanks,
Jason

- Raw text -


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