Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <023801c0f20e$8f738370$0200a8c0@lifelesswks> From: "Robert Collins" To: "Charles S. Wilson" , "Jason Tishler" , "Cygwin Users" References: <20010605113203 DOT B490 AT dothill DOT com> <3B1CFE49 DOT 20A885CA AT yahoo DOT com> <3B1D94F9 DOT F6FADE8F AT ece DOT gatech DOT edu> <20010605225519 DOT B3095 AT dothill DOT com> <3B1DADBE DOT 811853DD AT ece DOT gatech DOT edu> <3B240AE0 DOT DE96C67F AT ece DOT gatech DOT edu> Subject: Re: [avail for test] readline-4.2-1 Date: Mon, 11 Jun 2001 10:36:30 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 00:26:25.0597 (UTC) FILETIME=[263666D0:01C0F20D] ----- Original Message ----- From: "Charles S. Wilson" To: "Jason Tishler" ; "Cygwin Users" Sent: Monday, June 11, 2001 10:03 AM Subject: Re: [avail for test] readline-4.2-1 > Jason, > > If you've been following the subthread between Robert Collins and I, > then you understand why I haven't pushed too hard to get the readline > patch into Chet's official sources. I really don't want to fight that > battle -- and then have to fight to get it removed if Paul Sokolovsky's > modified binutils works as advertised. > > So, I guess we'll just have to live with the status quo for a the time > being, unless you want to take over readline, 200k patch and all. > > --Chuck > I've been quite for for a bit, but have been digging deep into libtool, to understand what options are arriving. This may be of interest to folk here who aren't on the libtool list, so I'm going to give a quick summary: for detail see the libtool list archives. libtool for cygwin today: * uses dllwrap and ~5 steps of linking. * cannot build both a static and shared library if it depends on other libraries. (Doesn't understand the concept of decorated headers, so cannot pass per-destination-mode per-depended library defines.) The first point is easy enough to resolve, if we are willing to let B19 folk sit out in the cold :]. The second point is _much_ harder, and a matter of a certain amount of dispute of approach. It's actually a special case of a harder problem related to passing defines needed when compiling code that will link with a given library. Paul's --auto-import switch: This is a really clever hack. It actually breaks the PE spec in a teensy little way, but to date, no MS runtime linker appears to have an issue with that.. (Read his description for more detail). I have a modified libtool here that uses gcc -shared and the modified ld to build both shared and static libraries, with dependencies, with no decoration. And it works beautifully. It works with existing headers that are decorated, because the auto-import only takes effect when a "symbol not found" would have occured previously. There seems to be a problem with dll's dependent on dll's built with this ld, and Paul and I are discussing this now on libtool/binutils. (At testcase is available at http://users.bigpond.net.au/robertc/testcase.tgz). If anyone is interested I'm happy to provide my custom libtool for experimentation (I haven't tarred it up yet, so just let me know). I have discussed the approach I'm taking with the libtool maintainers, so there shouldn't be any major issue with getting it merged back in, IFF the community thinks there's no problem with the patched ld. As far as I know I'm the first in-depth reviewer of the the patched ld, and I am not a PE or binutils expert :]. All I'm doing at the point is dreaming up testcases that might cause problems (starting with the full libtool test suite) and seeing if the patched ld is better than the standard ld, or if a regression occurs. Rob -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple