delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/13/20:20:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Mon, 13 Dec 1999 20:19:41 -0500
To: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: [GCC BUG] -I switch not functioning correctly.
Message-ID: <19991213201941.A25953@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
References: <19991213191842 DOT A25705 AT cygnus DOT com> <Pine DOT HPP DOT 3 DOT 96 DOT 991213184920 DOT 11108A-100000 AT hp2 DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0
X-Mailer: Mutt 1.0i
In-Reply-To: <Pine.HPP.3.96.991213184920.11108A-100000@hp2.xraylith.wisc.edu>; from khan@NanoTech.Wisc.EDU on Mon, Dec 13, 1999 at 07:06:54PM -0600

On Mon, Dec 13, 1999 at 07:06:54PM -0600, Mumit Khan wrote:
>On Mon, 13 Dec 1999, Chris Faylor wrote:
>
>> I don't know if anyone has noticed that you may not need dllwrap as much
>> in the CD release.  DJ added functionality to ld which should make it
>> a lot easier to build DLLs.  Essentially you can say something like:
>> 
>> ld -shared -o foo.dll --export-all-symbols foo.o bar.o
>
>Actually, there's a very good reason why I never brought this up --
>it's because the --shared support in v1 ld has certain known problems 
>that will generate lots of unnecessary bug reports. These problems 
>have been fixed in the sourceware tree, but v1 was cut before that 
>point.

Well, as an FYI, the DLL on the CD was linked using this method as
were all of the DLLs in the perl that was distributed on the CD.

>The problem has already been fixed, but not in v1. Search the binutils
>mailing list for "pe-dll". Patch submitted on 1999-06-25 and accepted
>on 1999-09-28. I believe there are a few other issues as well that   
>have been fixed since (something about adding relocs to .exe that 
>I vaguely remember running into while testing v1 after getting the
>CD).

This falls into the category of problems that could easily have been
rectified had I known they existed.  I guess I'd better start reading
the binutils mailing list.

>My suggestion is to use either (1) dllwrap, or (2) use ld/dlltool
>multiple times; (2) requires that you also remember to supply the
>correct entry point, which is automatically taken care of by
>dllwrap.

Hmm.  Personally, I'd still go with the simple 'ld -shared' method
as it seems that both 1) and 2) have drawbacks as well.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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