https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98708
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Comment on attachment 49986 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49986 A patch If that works, that would be great. I can't easily test it right away, but perhaps you could. Just compile some other libstdc++ source with -g -O2 -c on gcc configured against latest binutils, save the *.o file and repeat with -g -O2 -S + assembly by hand without -g* and compare if the readelf -wl between the two is identical.