This is the mail archive of the java-patches@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]

Re: [PATCH] Build libgcj, libgcj-tools, and libffi as shared libraries on Windows


Andrew Haley wrote:
Aaron W. LaFramboise wrote:
This patch builds libgcj, libgcj-tools, and libffi as DLLs on Windows.

The DLL itself is pretty massive, weighing in at 70 MB (29 MB stripped),
and a massive 82217 exports.  In the future, it might possible to
improve this situation by linking by ordinal.

Maybe you don't use libgcj.ver or some equivalent? I have no idea if you're even using GNU ld.

The Windows targets use GNU binutils as and ld.


However, version scripts only seem to be supported for ELF targets; Windows uses the PE variant of COFF.

The equivalent mechanism on Windows is the 'DEF' file, which unfortunately is not as expressive as version scripts, but it does have a few features version scripts don't, such as by-ordinal linking. Unfortunately DEF files do not support wild-card patterns either.

Actually, at present, this is not so much worse than on Linux ELF, which exports 65662 dynamic symbols from libgcj.so.10.0.0.

I will figure out what is necessary to generate a DEF file properly sometime soon, but in the meantime I think this can go in.


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