trimming libgcj symbol exports

Anthony Green green@redhat.com
Wed Aug 3 14:40:00 GMT 2005


On Mon, 2005-08-01 at 13:51 +0200, Jakob Praher wrote:
> hi anthony,
> 
> Am Freitag, den 29.07.2005, 09:30 -0700 schrieb Anthony Green:
> > Has anybody looked at using ld version scripts to trim down the number
> > of symbols we export from libgcj.so?
> > 
> I haven't. Do you mean the linker control scripts - this is the term I
> know about.

No, linker scripts are something else.  GNU ld also supports something
called version scripts.

> Though stripping symbols is a good idea, I think you have to be careful
> since ld-linux.so needs symbols to do relocation internally.
> 
> Perhaps not stripping but making them internal would be better. What
> does that do btw to the elf symbols. If you strip them are they
> completly deleted from the elf symbol tables? If so that might not be
> the thing you want for internal purposes like filling in the got table.

I'm just talking about controlling whether or not the symbol is visible
outside of the shared library. See
http://people.redhat.com/drepper/dsohowto.pdf for details.

AG




More information about the Java mailing list