RFR: 8311661: Resolve duplicate symbol of StringTable::StringTable with JDK static linking [v2]

Jiangli Zhou jiangli at openjdk.org
Tue Jul 11 20:21:06 UTC 2023


On Tue, 11 Jul 2023 19:53:58 GMT, Dean Long <dlong at openjdk.org> wrote:

> I think we already used -fvisibility=hidden to solve problems like this.

Right, the `stringTable.o` was already compiled with `-fvisibility=hidden` for example. `-fvisibility=hidden` didn't resolve the duplicate symbol issue with static linking. We ran into the duplicate duplicate symbol linking failure when user code also defines the symbol and statically linked together with hotspot `libjvm.a`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14808#issuecomment-1631455504


More information about the graal-dev mailing list