RFR: 8368250: [AIX] now ubsan vptr check is also possible (follow up of JDK-8354686) [v2]

Thomas Stuefe stuefe at openjdk.org
Thu Sep 25 14:45:19 UTC 2025


On Thu, 25 Sep 2025 07:40:03 GMT, Joachim Kern <jkern at openjdk.org> wrote:

>> After [JDK-8354686](https://bugs.openjdk.org/browse/JDK-8354686) the ubsan vptr checks still did not work. We finally found out, that they only work, if all linkage units are linked with the C++ compiler frontend as linker, especially the main executables (java, javac, ...) which are linked with the C compiler frontend.
>> So for a ubsan enabled build on AIX we let everything link with the C++ compiler frontend.
>> Background: The C++ compiler frontend inherently adds special static libraries which the C compiler does not. This results in missing symbols when trying to start a program and its shared libraries, when they were linked in mixed mode.
>
> Joachim Kern has updated the pull request incrementally with one additional commit since the last revision:
> 
>   indentation and typo

Good!

Ah, I missed @MBaesken s remark. Up to you, but I would do this only for ubsan.

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

Marked as reviewed by stuefe (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27468#pullrequestreview-3268141835


More information about the build-dev mailing list