This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
trimming libgcj symbol exports
- From: Anthony Green <green at redhat dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 29 Jul 2005 09:30:09 -0700
- Subject: trimming libgcj symbol exports
Has anybody looked at using ld version scripts to trim down the number
of symbols we export from libgcj.so?
I suspect the attached version script can trim on the order of 15,000
symbols from the .so. Unfortunately it causes ld to segv on my FC4
machine.
The idea here is to trim out symbols from boehm-gc, libffi, internal
gnu.* packages, zlib, etc. There are a lot of them!
{
global:
extern "C++" {
java*;
org::*;
_Jv_*;
Jv*;
gnu::java::rmi*;
gnu::gcj::RawData*;
gnu::gcj::runtime::StringBuffer*;
gnu::gcj::runtime::PersistentByteMap*;
gnu::gcj::convert::Convert*;
__gcj_personality_v0;
gcj::verifyClasses;
};
_ZTVN4java*;
_ZTVN5javax*;
_ZTVN3org*;
JNI_*;
local: *;
};