summaryrefslogtreecommitdiffstats
path: root/gcc/defaults.h
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-08 23:33:51 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-08 23:33:51 +0000
commit2cee371fc4ff421e7ee390cec4b7f3b2cfa2a0f1 (patch)
treeb2a3074871661348b009c02745413b72c17c05ab /gcc/defaults.h
parentaa9ca075e0c6df55b8210160564689f7a9749916 (diff)
downloadppe42-gcc-2cee371fc4ff421e7ee390cec4b7f3b2cfa2a0f1.tar.gz
ppe42-gcc-2cee371fc4ff421e7ee390cec4b7f3b2cfa2a0f1.zip
2001-08-08 Anthony Green <green@redhat.com>
* java/class.c (emit_register_classes): Use assemble_jcr if possible. Keep the original mechanism as a fallback. * defaults.h (JCR_SECTION_NAME): Define if we have named section and weak symbol support. * crtstuff.c (__JCR_LIST__): Define. (__JCR_END__): Define. (_Jv_RegiserClasses): Define weak symbol if possible. (__do_global_ctors_aux): Register classes for ELF targets with weak symbol support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44731 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r--gcc/defaults.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 20729249dcf..0939d077d63 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -217,6 +217,15 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNATE_NAME (INSN)); } while (0)
#endif
#endif
+/* If we have named section and we support weak symbols, then use the
+ .jcr section for recording java classes which need to be registered
+ at program start-up time. */
+#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
+#ifndef JCR_SECTION_NAME
+#define JCR_SECTION_NAME ".jcr"
+#endif
+#endif
+
/* If we have no definition for UNIQUE_SECTION, but do have the
ability to generate arbitrary sections, construct something
reasonable. */
OpenPOWER on IntegriCloud