https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61802
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Created attachment 33177 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33177&action=edit Proposed patch I guess the problem is that error_mark_node is special cased in varasm to send symbols to BSS for invalid programs. Does the following help?