This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Java class registration (w/crtstuff change)
- To: <green at peach dot cygnus dot co dot uk dot bothner dot com>
- Subject: Re: RFC: Java class registration (w/crtstuff change)
- From: Per Bothner <per at bothner dot com>
- Date: 30 Jul 2001 14:41:27 -0700
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <200107300508.BAA30929@peach.cygnus.co.uk>
<green@peach.cygnus.co.uk.bothner.com> writes:
> The new class registration mechanism has the compiler storing pointers
> to classes requiring registration in a new section: .jcr (java class
> registration). crtbegin and crtend are used to begin the list (with
> __JCR_LIST__) and NULL terminate it (at __JCR_END__).
> DO_GLOBAL_CTORS_BODY is modified to include a single call to libgcj's
> _Jv_RegisterClasses (made available via weak symbol).
I think this approach is winning. Have you verified that the Right
Thing will happen for shared libraries loaded with dlopen?
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/