summaryrefslogtreecommitdiffstats
path: root/libjava/libgcj_bc.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-17 01:03:21 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-17 01:03:21 +0000
commit919df38169fae42392ee8e62910bb49e53e62932 (patch)
tree95b7d3068d6d990fedb42e0c637b55e97c1f98bd /libjava/libgcj_bc.c
parentf98a9d6fc2fe2cdc5773a7a84aa1f0ea88912d73 (diff)
downloadppe42-gcc-919df38169fae42392ee8e62910bb49e53e62932.tar.gz
ppe42-gcc-919df38169fae42392ee8e62910bb49e53e62932.zip
gcc/java/ChangeLog
* jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. libjava/ChangeLog * configure, Makefile.in: Rebuilt. * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la. (libgcj_bc_la_SOURCES): New variable. (libgcj_bc_la_LDFLAGS): Likewise. (libgcj_bc_la_LIBADD): Likewise. (libgcj_bc_la_DEPENDENCIES): Likewise. (libgcj_bc_la_LINK): Likewise. (libgcj_bc_dummy_LINK): Likewise. (libgcj_bc.la): New target. (install-exec-hook): Likewise. * libgcj.spec.in (*lib): Use LIBGCJ_SPEC. * libgcj_bc.c: New file. * configure.ac (LIBGCJ_SPEC): New subst. * configure.host (use_libgcj_bc): New variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116204 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/libgcj_bc.c')
-rw-r--r--libjava/libgcj_bc.c94
1 files changed, 94 insertions, 0 deletions
diff --git a/libjava/libgcj_bc.c b/libjava/libgcj_bc.c
new file mode 100644
index 00000000000..66a14682f8c
--- /dev/null
+++ b/libjava/libgcj_bc.c
@@ -0,0 +1,94 @@
+/* libgcj_bc.c */
+
+/* Copyright (C) 2006 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+/* This file is used to build libgcj_bc.so, a 'fake' library that is
+ used at link time only. It ensures that binaries built with the
+ BC-ABI link against a constant SONAME. This way, BC-ABI binaries
+ continue to work if the SONAME underlying libgcj.so changes. */
+
+#include <stdlib.h>
+#include <stdio.h>
+
+static void print_wrong_lib_msg ()
+{
+ fprintf (stderr, "libgcj error: \
+This is libgcj_bc.so, a fake library used only for linking.\n\
+Please create a symlink from libgcj_bc.so.1 to the real libgcj.so.\n");
+ exit (1);
+}
+
+/* Functions called from code generated by gcj. */
+
+void __gcj_personality_v0 () {}
+void _Jv_AllocObject () {}
+void _Jv_AllocObjectNoFinalizer () {}
+void _Jv_InitClass () {}
+void _Jv_ResolvePoolEntry () {}
+void _Jv_Throw () {}
+void _Jv_MonitorEnter () {}
+void _Jv_NewPrimArray () {}
+void _Jv_NewObjectArray () {}
+void _Jv_NewMultiArray () {}
+void _Jv_ThrowBadArrayIndex () {}
+void _Jv_ThrowNullPointerException () {}
+void _Jv_ThrowAbstractMethodError () {}
+void _Jv_ThrowNoSuchFieldError () {}
+void _Jv_CheckCast () {}
+void _Jv_IsInstanceOf () {}
+void _Jv_CheckArrayStore () {}
+void _Jv_LookupInterfaceMethodIdx () {}
+
+void _Jv_RegisterClasses ()
+{
+ print_wrong_lib_msg ();
+}
+
+void _Jv_RegisterNewClasses ()
+{
+ print_wrong_lib_msg ();
+}
+
+/* Symbols used by jvgenmain (-fmain). */
+
+void JvRunMain () {}
+const char **_Jv_Compiler_Properties;
+
+/* Functions used by -fjni. */
+
+void _Jv_LookupJNIMethod () {}
+void _Jv_GetJNIEnvNewFrame () {}
+void _Jv_UnwrapJNIweakReference () {}
+
+
+/* Checked divide (-fuse-divide-subroutine). */
+
+void _Jv_divI () {}
+void _Jv_remI () {}
+void _Jv_divJ () {}
+void _Jv_remJ () {}
+
+
+/* CNI Functions. */
+
+void _Jv_AllocBytes () {}
+void _Jv_AllocString () {}
+void _Jv_NewString () {}
+void _Jv_NewStringLatin1 () {}
+void _Jv_GetStringChars () {}
+void _Jv_GetStringUTFLength () {}
+void _Jv_GetStringUTFRegion () {}
+void _Jv_NewStringUTF () {}
+void _Jv_Malloc () {}
+void _Jv_Realloc () {}
+void _Jv_Free () {}
+void _Jv_CreateJavaVM () {}
+void _Jv_AttachCurrentThread () {}
+void _Jv_AttachCurrentThreadAsDaemon () {}
+void _Jv_DetachCurrentThread () {}
OpenPOWER on IntegriCloud