gcc -mno-cygwin STL support for setup.exe?

Jason Tishler jason@tishler.net
Fri Jan 18 11:12:00 GMT 2002


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



More information about the Cygwin-apps mailing list