Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Wed, 18 Apr 2001 15:37:57 -0400 Message-Id: <200104181937.PAA06551@greed.delorie.com> From: DJ Delorie To: cygwin-apps AT cygwin DOT com In-reply-to: <20010418151436.G3648@redhat.com> (message from Christopher Faylor on Wed, 18 Apr 2001 15:14:36 -0400) Subject: Re: gcj && libjava for cygwin References: <8D00C32549556B4E977F81DBC24E985DC839 AT crtsmail1 DOT technol_exch DOT corp DOT riotinto DOT org> <20010418151436 DOT G3648 AT redhat DOT com> > On Wed, Apr 18, 2001 at 09:37:47AM -0700, Anthony Green wrote: > > > >> What I don't understand where _Jv_Sjlj_Throw and JNI_OnLoad are defined. > > > >JNI_OnLoad is a weak symbol -- see natFirstThread.cc. Shared libraries of > >JNI code define it. Do weak symbols not work on cygwin? > > I don't think they do. > > DJ, do you know for sure if weak symbols are even supported in PE? Yes, PE has weak symbols (grep for C_NT_WEAK in bfd). However, I doubt they'd work with DLLs. The import table doesn't have the concept of "import this if it exists, else just leave it zero."