This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker errors building libgcj.so (undefined refs to hidden aliases)


I am working on a patch that removes FE data from all global symbols
and types right after we have the whole callgraph in gimple form.

I'm attaching the patch for reference.  It's pretty bulky, but the
high-level view is that we:

- NULL out every symbol/type field that contains front-end data (like
BINFO, TREE_LANG_FLAGs, etc).
- Generate assembler names for every symbol that needs it.
- Generate runtime types for all the EH types in ERT_CATCH and
ERT_ALLOWED_EXCEPTION regions
- Rewrite a bunch of lang_hooks to point to gimple variants.

Clearly, it is removing something that makes us mess up some
references.  I am getting this link failure while building libgcj.so.

./.libs/libgcj.so: undefined reference to `hidden alias for int
java::util::zip::Inflater::getAdler()'
./.libs/libgcj.so: undefined reference to `hidden alias for
JArray<java::lang::reflect::Method*>*
java::lang::Class::getDeclaredMethods()'

Has anyone seen these messages before?  I'm trying to figure out where
should I start looking for the problem.


Thanks.  Diego.

Attachment: 20090806-free-lang-data.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]