Index: COFF/Chunks.h =================================================================== --- COFF/Chunks.h +++ COFF/Chunks.h @@ -187,7 +187,10 @@ } // True if this is a DWARF debug info chunk. - bool isDWARF() const { return SectionName.startswith(".debug_"); } + bool isDWARF() const { + return SectionName.startswith(".debug_") || + SectionName.startswith(".eh_frame"); + } // Allow iteration over the bodies of this chunk's relocated symbols. llvm::iterator_range symbols() const { Index: test/COFF/reloc-discarded-dwarf.s =================================================================== --- test/COFF/reloc-discarded-dwarf.s +++ test/COFF/reloc-discarded-dwarf.s @@ -13,3 +13,5 @@ .section .debug_info,"dr" .quad f + .section .eh_frame,"dr" + .quad f