This is the mail archive of the
mailing list for the Cygwin project.
Re: gcj && libjava for cygwin
> 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."