We just discovered that every symbol is libjvm is being exported on OSX. The OSX/BSD makefiles were copied from the linux ones and so have the options for linker scripts and mapfiles, but as OSX doesn't support linker scripts this is disabled by setting LDNOMAP=true - hence all symbols are exported.

However the OSX linker does support -exported_symbols_list

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ld.1.html

so I was wondering why the build wasn't modified to use that so that we only export the JVM symbols we intend to export? (That's a question for the macosx-port-dev folk :) ).

Does anyone have experience using this such that we can get the hotspot build fixed?

Thanks,
David

Reply via email to