On Fri, 26 Sep 2025 07:11:44 GMT, Matthias Baesken <[email protected]> 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

Reply via email to