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