http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54173
--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2012-08-04 16:13:03 UTC --- (In reply to comment #1) > For sure, nothing changed in this area for years and years, thus must be a > compiler issue. Please try to figure when it started... i have similar effects for 4.5/4.6/4.7/4.8 with my .lds script. afaics in the assembly code, the non-debug (good) version only references external _S_empty_rep_storage symbol while the debug (broken) version defines the _S_empty_rep_storage symbol as weak/gnu-unique.