https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172
--- Comment #17 from Martin Liška <marxin at gcc dot gnu.org> --- So another observation, it's not related to STB_GNU_UNIQUE. Using --disable-gnu-unique-object: $ readelf -s /home/marxin/bin/gcc3/lib64/libstdc++.so.6 --wide | grep storage 1431: 000000000038dd60 32 OBJECT WEAK DEFAULT 27 _ZNSs4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4 4467: 000000000038dd80 32 OBJECT WEAK DEFAULT 27 _ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4 3633: 000000000038dd60 32 OBJECT WEAK DEFAULT 27 _ZNSs4_Rep20_S_empty_rep_storageE 4224: 000000000038dd80 32 OBJECT WEAK DEFAULT 27 _ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE $ grep storage pr82172-2.res 1344 a6363178d2c55d5a PREVAILING_DEF_IRONLY _ZNSs4_Rep20_S_empty_rep_storageE Still, similar problem, I will debug ld a bit tomorrow.