www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/02/15/13:07:37

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Thu, 15 Feb 2001 12:13:32 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Exporting symbols from a .exe
Message-ID: <20010215121332.H3899@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20010215013211 DOT A2451 AT redhat DOT com> <200102151541 DOT KAA30990 AT envy DOT delorie DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <200102151541.KAA30990@envy.delorie.com>; from dj@delorie.com on Thu, Feb 15, 2001 at 10:41:31AM -0500

On Thu, Feb 15, 2001 at 10:41:31AM -0500, DJ Delorie wrote:
>>I know that in a past life I was able to export symbols from a normal
>>executable without too much work.
>
>If you're using "gcc --shared" note that I think the linker disables
>all the dll-related code (i.e.  exports) when not building a dll.  It
>shouldn't be hard to re-enable, but you'd have to make it not default
>to export-all like it does for dlls.

With MSVC you don't have to do anything special.  If I try --shared, the
executable just doesn't work.

A better idea for doing this occurred to me as I was drifting off to sleep
last night (and continued to occur to me until around 4AM, grr...) so this
is a moot point for me but I am still somewhat curious about if this
could be made to work as transparently as msvc/link.

cgf

- Raw text -


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