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

Joachim Kern jkern at openjdk.org
Fri Sep 26 12:01:46 UTC 2025


On Fri, 26 Sep 2025 07:11:44 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > > Looks like we get now ALWAYS ` -Wl,-bcdtors:mbr::s` into the AIX link flags, is that observation correct? So the change does not only touch ubsan but all linkage on this platform ? What are the pros and cons ?
> > 
> > 
> > I got the advice from IBM, that we should use this link flag in any case. We just missed it in the initial porting to the new clang based Compiler.
> 
> So what does the added flag (especially in the 'normal' non-sanitizer enabled builds) and what's the benefit we get from it (so far we lived happily without it).

This linker flag maintains the well-established order of initialization of static constructors, as known from the former xlC.

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

PR Comment: https://git.openjdk.org/jdk/pull/27468#issuecomment-3338331863


More information about the build-dev mailing list