Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de)
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Ralf Habacker" <Ralf.Habacker@saght.tessag.com>,
        "Cygwin" <cygwin@cygwin.com>
Subject: RE: function pointers & DLL's
Date: Mon, 14 May 2001 18:07:51 +0400
Message-ID: <000a01c0dc7f$434a8b50$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <002c01c0dc78$e6cb4000$6e032bb7@BRAMSCHE>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000

> >
> > For GCC (at least :-) __declspec(dllimport) is optional for functions but
> > is mandatory for variables. The side-effect of the above is, that function
> > address is no more static and cannot be used as static initializer, e.g.
> > in function dispatch table like
> >
> That's not right. Paul Sokolvsky has written an ld patch named auto-import
> initial for mingw, which is adapted to cygwin. Look into the appended files.
> If you like, you can have this patched ld by mail and try it out.
>

Ehem ... what exactly is not right? If this patch is already included in
current Cygwin GCC/binutils - granted, I have not tried it lately. If not - my
statement is still correct for the curent GCC.

-andrej


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

