section-gc and gcj

Anthony Green green@redhat.com
Fri Jan 4 01:46:00 GMT 2002


On Thu, 2002-01-03 at 22:08, Adam Megacz wrote:
> - Do -ffunction-sections and -fdata-sections work with gcj?

I tried this a few weeks ago on x86 Linux and it worked fine.

> - If the above works, and I manually strip the symbols of functions I
>   know I won't use, and I enable section-gc in the linker, will the
>   linker properly drop such functions?

I believe so.

> - (kinda OT) does anybody know if the latest mingw ld offers
>   section-gc? 

Section GC has been part of GNU ld for some time now (on the order of
years now).  Does mingw ld == GNU ld?  I don't know if section GC works
for non-ELF targets (which I assume mingw is).

AG



More information about the Java mailing list