https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86651
--- Comment #4 from jwjagersma at gmail dot com --- Created attachment 44439 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44439&action=edit Proposed patch I cloned the fix that was applied to cygwin/mingw targets in SVN r259347. There didn't seem to be any way to identify COFF targets for use in dwarf2out.c, so I defined a new macro TARGET_COFF. I hope this is the right way to do it. This patch works for me, please review and merge if possible.