Patch: java class registration via .jcr section
Richard Henderson
rth@redhat.com
Sat Aug 4 01:30:00 GMT 2001
On Fri, Aug 03, 2001 at 11:05:02PM -0400, green@peach.cygnus.co.uk wrote:
> +asm (JCR_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */
> +STATIC void *__JCR_LIST__[1] __attribute__ ((__unused__)) = { 0 };
No. Use __attribute__((section(JCR_SECTION_NAME)));
Likewise for __JCR_END__.
> + for (jcr = __JCR_END__ - 1; *jcr != NULL; jcr--)
> + _Jv_RegisterClass (*jcr);
You've defined _Jv_RegisterClass weak, but I don't see you testing
it non-null.
r~
More information about the Java-patches
mailing list