https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123480
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Icenowy Zheng from comment #7)
> (In reply to Andrew Pinski from comment #5)
> > LD_PRELOAD can be used, just that since gcc defaults to linking statically
> > to libstdc++, you can't use a LD_PRELOAD that uses libstc++.
> > As mentioned you can change how you link gcc to use shared libstdc++. Which
> > then will work too.
>
> The problem is that this is currently an architecture-specific problem, and
> even worse it works properly on x86.
>
> Maybe I should re-assign the component to libstdc++ because it's quirk of
> using statically-linked libstdc++ and shared ones together?
That is documented as dont do it too.