trimming libgcj symbol exports
Anthony Green
green@redhat.com
Fri Jul 29 16:30:00 GMT 2005
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: *;
};
More information about the Java
mailing list