RFR: 8311846: Resolve duplicate 'Thread' related symbols with JDK static linking
Andrew Haley
aph at openjdk.org
Sat Jan 20 18:02:26 UTC 2024
On Fri, 19 Jan 2024 20:21:21 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
> > You could support one build by adding something like -DSUPPORTS_STATIC_LINK for both .so and .a builds for Google, then use that to protect the renaming.
>
> Thanks, @coleenp. I think that could work for all different cases. I'll reflect that in this PR.
>
> For longer term we probably still want to find a cleaner solution when the static support becomes more popular.
I think you should be able to use ld and objcopy to merge the .o files and hide all of the symbols you don't want to export.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17456#issuecomment-1902207127
More information about the serviceability-dev
mailing list