Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com From: "Ralf Habacker" To: "Robert Collins" , "Charles Wilson" Cc: "Kde-Cygwin" , "Binutils" , "Cygwin-Apps" Subject: RE: ordinal linking for cygwin ld Date: Sat, 27 Apr 2002 02:55:26 +0200 Message-ID: <006a01c1ed86$39042ca0$625d07d5@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Ralf Habacker > -----Original Message----- > From: binutils-owner AT sources DOT redhat DOT com > [mailto:binutils-owner AT sources DOT redhat DOT com]On Behalf Of Robert Collins > Sent: Saturday, April 27, 2002 2:26 AM > To: Ralf Habacker; Charles Wilson > Cc: Kde-Cygwin; Binutils; Cygwin-Apps > Subject: RE: ordinal linking for cygwin ld > > > > > > -----Original Message----- > > From: Ralf Habacker [mailto:Ralf DOT Habacker AT freenet DOT de] > > Sent: Saturday, April 27, 2002 10:23 AM > > To: Robert Collins; Charles Wilson > > Cc: Kde-Cygwin; Binutils; Cygwin-Apps > > Subject: RE: ordinal linking for cygwin ld > > > > > > > The PE spec (as I read it) indicates that as long as a name is > > > included (ie it's not link-only-by-ordinal) then ordinals > > can change > > > and nothing will break. > > > > > > It's only when the only link information is the ordinal > > that problems > > > will appear. > > > > Or ld has a switch to explicit use ordinals (see other mails from me) > > I don't see what such a switch gains. The hint ordinal should provide > the same performance as an ordinal-only-link. By default ld does not use ordinals or linking. Only when an import lib does not contain names in the _nm_vector, ld takes the ordinal for linking (identified by flag_noname in pe-dll.c/ei386pe.c). Thats what I have used. I have patched ld to write the import library only with ordinals and ld does the rest. Only an additional patch for auto-imported date was necessary. (see the patch) Ralf